Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 PDF 有一个类似“\IPAddress\Folder\File name”的文件路径,它来自数据库..而 JavaScript 显示错误“无法加载本地资源文件”。
不允许您访问本地文件是浏览器的一项安全功能。为此,您可以在 Javascript 文件中创建一个基本 URL 变量并与您的相对文件路径相邻,即
let baseURL = "http://192.168.1.48"