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版本以后的没,诚心求教
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是要在objc里面跑js吗? UIWebView类本身就有一个stringByEvaluatingJavaScriptFromString方法
http://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.html#//apple_ref/occ/instm/UIWebView/stringByEvaluatingJavaScriptFromString: