如何让Webview调用H5中的Javascript方法

webview打开了H5页面,需要调用H5中的某个方法

H5只需要将该方法写入到window对象中

window.callBackFunction = () => { console.log('webview use js function') }

posted @ 2023-12-25 14:01  Karle  阅读(45)  评论(0编辑  收藏  举报