vue-bridge-webview icon indicating copy to clipboard operation
vue-bridge-webview copied to clipboard

javascript bridge android/ios webview

Results 3 vue-bridge-webview issues
Sort by recently updated
recently updated
newest added

你好,我在js中写如下代码,可以发送成功,但是怎么都不到回调函数中function(data){}中。备注:在安卓端可以接收到这个调用,并且安卓端用onCallBack返回了数据。 ``` that.$bridge.callHandler('playVoice', {'content': that.content}, function(data){ // 发送成功后,代码不会进入到这里,导致这里的操作无法完成 that.result = data }) ```

使用方式不是很明白 要在main.js引用吗

![image](https://user-images.githubusercontent.com/12611993/35365825-76b51482-01b1-11e8-90c6-e41299ce5c2f.png) 这个延时并不保险,所以在实际应用了中修调整了下callHandler回调函数: ![image](https://user-images.githubusercontent.com/12611993/35366257-6e86e7e8-01b3-11e8-8855-54105bd09268.png) 这个只是我们简单的优化,欢迎各位指正🙏