admin管理员组

文章数量:1538721

利用jQuery.load函数进行加载本地HTML文件是会出现

Access to XMLHttpRequest at ‘file:///F:/%E4%BB%A3%E7%A0%81/Jquery/a.txt’ from origin ‘null’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

的问题,只需要在快捷方式的目标后加入" --allow-file-access-from-files"(最前面有个空格)”即可。

本文标签: 浏览器错误