`

firefox不识别“../../”的相对路径的问题

    博客分类:
  • java
阅读更多

在使用dojo时,想要完全不用tomca跑动dojo应用(加载本地的dojo库文件),在引用的dojo.js文件为相对路径的时候要注意:


There was a security adjustment in Firefox 3.

 1,Go to about:config
 2,Set security.fileuri.strict_origin_policy to false.
将此设置改了即可识别相对路径!

类似于这种:

 <script type="text/javascript" src="../../javascript/dojo16/dojo/dojo.js"
            djConfig ="parseOnLoad: true"></script>

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics