Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google chrome Chrome加载本地资源_Google Chrome_File Access - Fatal编程技术网

Google chrome Chrome加载本地资源

Google chrome Chrome加载本地资源,google-chrome,file-access,Google Chrome,File Access,出于开发原因,我想使用本地JS文件,但在chrome(版本41.0.2272.89)中遇到“不允许加载本地资源”错误。我读了很多书,但是: "C:\PathTo\Chrome.exe" --allow-file-access-from-files 在我的测试页面上对我不起作用,即使这样chrome://version 说: "C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe" --allow-file-access-from

出于开发原因,我想使用本地JS文件,但在chrome(版本41.0.2272.89)中遇到“不允许加载本地资源”错误。我读了很多书,但是:

"C:\PathTo\Chrome.exe" --allow-file-access-from-files
在我的测试页面上对我不起作用,即使这样chrome://version 说:

"C:\Program Files (x86)\Google\Chrome\Application\Chrome.exe" --allow-file-access-from-files --flag-switches-begin --flag-switches-end
有人能在测试页面上试试它对他是否有效吗?有没有其他方法可以在不设置本地服务器的情况下访问本地文件