JS调用iOS (webkit)
JS调用iOS: window.webkit.messageHandlers.<name>.postMessage(<messageBody>)
。
<name>:方法名
<messageBody>:需要传递的参数(*即使没有参数也要传null)
原文:https://www.jianshu.com/p/58132c5616b3
JS调用iOS: window.webkit.messageHandlers.<name>.postMessage(<messageBody>)
。
<name>:方法名
<messageBody>:需要传递的参数(*即使没有参数也要传null)
原文:https://www.jianshu.com/p/58132c5616b3