Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试将 cordova.js 或 phonegap.js(使用 phonegapbuild)作为 AMD 模块加载到 require.config 中的 main.js 中,如下所示:
cordova: 'cordova.js'
我应该将它包含在 shim 中吗?
那你怎么测试呢?你可以使用 navigator.getPicture 吗?
尝试使用 requireJS 加载科尔多瓦时遇到问题。
似乎它不适用于cordova 2.2.0(可能还有其他版本)。
你可以阅读我关于这个问题的帖子。
希望这可以帮助!