小程序如何与其web-view通信?

灏忕▼搴� 文章 2021-12-01 16:20 10 0 全屏看文

小程序如何与其web-view通信?How does the applet communicate with its web-view?

小程序如何与其web-view通信?

目前按照官方文档所说的话,小程序与web-view通信只有在特定情况才会触发(会在特定时机(小程序后退、组件销毁、分享)触发组件的message事件),那么是否还有其它方式可以进行频繁通信?除了websocket,麻烦大佬解答下,谢谢!

At present, according to the official documents, the communication between the applet and the web view can only be triggered under specific circumstances (the message event of the component will be triggered at a specific time (applet retreat, component destruction and sharing). Is there any other way to communicate frequently? In addition to websocket, please answer, thank you!

鍥炵瓟锛�

CitizenFour:

不要曲解webview,他只是个展示

庄生:我也不想曲解,业务需求,微信自己把H5的蓝牙干掉了,只能在小程序用
微喵网络:

没有

拾忆:

没有了

-EOF-