0
我做一个简单的项目上dijit.Tree.whenever我运行它给以下错误的程序道场给错误:未捕获的引用错误道场没有定义
uncaught reference error: dojo is not defined
有时
XMLHttpRequest cannot load file:///C:/Users/Desktop/dojoapps/dojo/dojo/main.js. Cross origin requests are only supported for HTTP.
这是正确的更换你的路径。另外,另一种解决方案是如果从文件系统运行协议相关URL,则它会将“file:///”预先指定给任何协议相对路径。 – belzebu