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版本以后的没,诚心求教
羞涩纯真小郎君
11 years, 3 months ago
Answers
是要在objc里面跑js吗? UIWebView类本身就有一个stringByEvaluatingJavaScriptFromString方法 http://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.html#//apple_ref/occ/instm/UIWebView/stringByEvaluatingJavaScriptFromString :
人民币战士
answered 11 years, 3 months ago