Safari - 没有禁用本地文件限制选项

时间:2016-05-03 10:22:05

标签: javascript google-chrome safari ionic-framework cors

我已经在Windows 8中安装了Safari用于开发目的,我试图“禁用本地文件限制”但我在开发菜单中找不到该选项。

提前致谢

1 个答案:

答案 0 :(得分:1)

By default Safari doesn't allow access to local files. To enable this option:
First you need to enable the develop menu.
To have the develop menu of Safari provide access to a variety of web development tools. 
To display the Develop menu: 
Open Safari.
Click on the Edit > Preferences > Advanced tab.
Check "Show Develop menu in the menu bar.

enter image description here

现在可以使用开发菜单。 enter image description here

单击“开发”菜单     选择“禁用本地文件限制”。

    it is also worth noting safari has some odd
 behaviour with caches, so it is also to
 use the "Disable caches" option in the same menu;
 if you are editing & debugging using safari.