File tree Expand file tree Collapse file tree 1 file changed +0
-56
lines changed
docs/manual/zh/introduction Expand file tree Collapse file tree 1 file changed +0
-56
lines changed Original file line number Diff line number Diff line change @@ -117,62 +117,6 @@ <h3>Lighttpd</h3>
117117 </ ol >
118118 </ div >
119119
120- < h2 > 更改本地文件的安全策略</ h2 >
121- < div >
122- < h3 > Safari</ h3 >
123- < div >
124- < p >
125- 在“偏好”面板中启用开发菜单,位于“高级”->“在菜单栏中显示开发菜单”
126- </ p >
127-
128- < p >
129- 之后从Safari中的“开发”菜单中,选择“停用本地文件限制”,同样需要注意的是,Safari对于缓存有一些奇怪的行为,
130- 因此建议,在同一菜单中打开“停用缓存”的选项;如果你正在编辑,请使用Safari进行调试。
131- </ p >
132- </ div >
133-
134-
135- < h3 > Chrome</ h3 >
136- < div >
137- < p > 请关闭Chrome浏览器正在运行的*所有*实例,注意这里非常重要的关键字是“*所有*”。</ p >
138-
139- < p >
140- 在Windows中,你可以在任务管理器中查看所有正在运行的Chorme浏览器的实例。
141- 此外,如果你在系统任务栏中看到了Chrome图标,请鼠标右键打开它的上下文菜单,点击关闭。这样就应当已经关闭所有正在运行的Chrome浏览器实例了。
142-
143- </ p >
144-
145- < p >
146- 然后使用命令行执行Chrome浏览器,并在命令行中添加允许访问本地文件的参数:</ p >
147-
148- < code > chrome --allow-file-access-from-files</ code >
149-
150- < p >
151- 在Windows中,最简单的做法或许就是创建一个特别的快捷方式图标,快捷方式的目标指向上面的命令行
152- (右键点击快捷方式图标->属性->目标)。
153- </ p >
154-
155- < p > 在Mac OS X中,你可以用这种方法来添加允许访问本地文件的参数并运行Chrome:</ p >
156-
157- < code > open /Applications/Google\ Chrome.app --args --allow-file-access-from-files</ code >
158- </ div >
159- < h3 > Firefox</ h3 >
160- < div >
161- < ol >
162- < li >
163- 在地址栏中,键入< code > about:config</ code >
164- </ li >
165- < li >
166- 找到这个参数< code > security.fileuri.strict_origin_policy</ code >
167- </ li >
168- < li >
169- 将其设置为< em > false</ em >
170- </ li >
171- </ ol >
172- </ div >
173-
174- </ div >
175-
176120 < p >
177121 其它简单的替代方案你可以在Stack Overflow上找到:[link:http://stackoverflow.com/q/12905426/24874 click here]。
178122 </ p >
You can’t perform that action at this time.
0 commit comments