PhoneGap / Cordova 1.6和dojo 1.7.2 AMD的工作从web,而不是从本地? [英] PhoneGap / Cordova 1.6 and dojo 1.7.2 AMD works from web, not from local?
问题描述
我最近将PhoneGap / dojo1.6应用升级到cordova 1.6,一切正常。
然后我使用托管dojo升级到dojo 1.7.2: [script src =http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.jsdata-dojo-config =async:true] [/ script]
再次,一切都很好。
但是当我试图使用本地dojo时, .6和cordova1.6,找到并加载dojo.js,但应用程序不会启动/加载其他dojo模块文件。
[script src = dojo1.7.2 / dojo / dojo.jsdata-dojo-config =async:true] [/ script]
我结束了复制整个dojo1.7.2没有建立任何东西),但仍然应用程序将不会加载,我在控制台中没有错误消息。
有没有人知道可能是什么问题
提前感谢
Guy
尝试在您的dojo [script src =]中使用以下配置:
data-dojo-config =async:false,parseOnLoad :true
还包括cordova.js文件 BEFORE 。 js文件。
I have recently upgraded my PhoneGap/dojo1.6 app to cordova 1.6 and everything works just fine.
Then I upgraded to dojo 1.7.2 using hosted dojo: [script src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js" data-dojo-config="async: true"][/script]
And again, everything works fine.
But when I tried to use local dojo, much like I did when using dojo1.6 and cordova1.6, the dojo.js is found and loaded, but the app won't start/load other dojo module files.
[script src="dojo1.7.2/dojo/dojo.js" data-dojo-config="async: true"][/script]
I ended copying the entire dojo1.7.2 (didn't build anything), but still the app won't load and I get no error messages in the console.
Does anyone have any idea what might be the problem?
Thanks in advance, Guy
Try using the following config in your dojo [script src=]:
data-dojo-config="async:false,parseOnLoad:true"
Also include the cordova.js file BEFORE the dojo.js file.
这篇关于PhoneGap / Cordova 1.6和dojo 1.7.2 AMD的工作从web,而不是从本地?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!