wx.miniProgram.postMessage({ //向小程序发送数据
data:{
'title':'分享',
'link':codeurl,
'imgUrl':vue.userpro.head_url,
'headerUrl':vue.userpro.head_url,
'methodUrl':localStorage.getItem("url")
}
})
<web-view src="http://192.168.0.195:8848/shoppingH5/login2.html" bindmessage="viewmessageFn"></web-view>
bindmessage监听不触发怎么回事?在开发工具上可以监听到数据,真机调试就不调用viewmessageFn方法
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)