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!

你可能感兴趣的:(Cordova)