我有一个iOS新的Cordova(aka PhoneGap)项目,它使用jQuery方法$.getJSON
与RESTful API进行交互,该API运行在测试服务器。问题是,当我尝试运行应用程序我得到这个在我的Xcode的调试日志:“NetworkStatus0 = TypeError:'undefined'不是函数”错误无理由
2012-05-01 11:10:49.031 RESTtest[223:707] [INFO] Error in success callback: NetworkStatus0 = TypeError: 'undefined' is not a function
我已经做了一些搜索有关这个错误,我整个this question去了,但问题是,我不使用navigator.network.isReachable
,既不是navigator.network.connection.type
,因为它只是一个测试项目。什么是错,我如何解决它?