首页 > Cordova 2.3(ios)中怎么执行javascript?

Cordova 2.3(ios)中怎么执行javascript?

Cordova其实就是phonegap

'invokeString' is deprecated: Deprecated in Cordova 2.0. Use window.handleOpenURL(url instead. It is called when the app is launched through a custom scheme url.

原来有个invokestring传递过去就能执行,现在说这个方法已经废弃了,window.handleOpenURL也没有找到相关文档,有使用过cordova2.0版本以后的没,诚心求教


是要在objc里面跑js吗? UIWebView类本身就有一个stringByEvaluatingJavaScriptFromString方法 http://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.html#//apple_ref/occ/instm/UIWebView/stringByEvaluatingJavaScriptFromString:

【热门文章】
【热门文章】