偶中意雷 3星
共回答了32个问题采纳率:95.4% 评论
不知道题主是不是用的 cordova 3.0 以上的版本如果是的话。 cordova_plugins.js 是不需要手动引入的。一个常规的 cordova 项目的文件目录结构是这样的
config.xml hooks platforms 【build file】 |----android/ios |----www 会自动生成 cordova_plugins.js ,并且不需要手动引入 plugins www 【developer file】 |--- index.html 只需要引入 cordova.js
题主你开发的静态文件都应该放到根目录下的 www 中。然后使用 command 【cordova prepare 或者 cordova build】 来构建,就会自动把根目录下的www中的文件覆盖到 platforms 中,并生成对应的 cordova_plugins.js 另外,native 功能需要使用真机测试,在浏览器中测试不到的。8小时前
猜你喜欢的问题
5个月前1个回答
5个月前1个回答
5个月前1个回答
5个月前2个回答
5个月前1个回答
5个月前2个回答
热门问题推荐
3个月前1个回答
1个月前1个回答
1个月前1个回答
1个月前1个回答
3个月前1个回答
1个月前2个回答
1个月前1个回答
4个月前1个回答
3个月前1个回答