ERROR:Attempting to call cordova.exec() before 'deviceready'

phonegap+jquerymobile开发时一直弹出此错误信息

解决:

 stackoverflow原文地址

问题原因:

Ios平台上代码移到Android平台上需替换相应的cordova-X.X.X.js

 

The cordova-1.7.0.js is different for different mobile platforms so use the correct JS file for particular platform.

That's it!

posted on 2012-05-14 09:18  archie2010  阅读(622)  评论(0编辑  收藏  举报