微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

dojo在火狐上出现Could not load的解决方法

Could not load 'dojo._base.lang'; last tried './_base/lang.js' 在firefox下运行dojo的demo时出现这个错误,google了一下,原来firefox在 file:// 下 不支持javascript 需要修改配置

http://comments.gmane.org/gmane.comp.web.dojo.user/48439

In addition to Ben's comments,I think your issue is you're trying to load your site from a file:// url,not a webserver.
By default,Firefox doesn't allow file:// urls to work with JavaScript. You have to enable it.
在火狐网址栏输入:
about:config
security.fileuri.strict_origin_policy needs to be set to false
To be able to serve from the filesystem (no webserver).

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐