我在 OS X (Snow Leopard) 上运行谷歌浏览器 (12.0.742.122),我需要传递“--allow-files-access-from-files”选项,以便我可以测试一些我正在使用的本地 javascript 内容工作。
我尝试使用以下命令行方法:
/Applications/Google\ Chrome.app/Content/MacOS/Google\ Chrome --allow-files-access-from-files
open /Applications/Google\ Chrome.app/Content/MacOS/Google\ Chrome -n --args --allow-files-access-from-files
Run Code Online (Sandbox Code Playgroud)
两者都将启动谷歌浏览器,但它似乎不接受这个论点,因为我仍然无法测试我的本地 Javascript。
有什么建议?