web-view wx.miniProgram.navigateTo,一直没反应也没报错是什么?

小程序 文章 2021-04-08 10:42 1279 0 全屏看文

AI助手支持GPT4.0

web-view wx.miniProgram.navigateTo,一直没反应也没报错是什么?What is the web-view wx.miniProgram.navigateTo, there is no response and no error is reported?

web-view wx.miniProgram.navigateTo,一直没反应也没报错是什么?

有大佬能解答一下吗。试了好久点击一点反应也没有,直接网页打开页面点击按钮是有反应的报错 ncaught TypeError: Cannot read property 'navigateTo' of undefined

Can you answer it. After trying for a long time, there is no response when you click the button on the web page directly. Ncaight type error: cannot read property 'navigateto' of undefined

回答:

青团社:

猜测 你这个页面是tabbar页面。应该用switchTab。还有可能是你aa这个方法没触发?

没代码 真难猜


1.3.2的版本改成1.6.0

|G.XIAO|:

Brother斌🎈:

开发者工具打开webview调试看一下有没有报错

杯面最好吃:打开了 一点反应也没有 也没报错
Brother斌🎈:提供一下代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
或者webview的链接
杯面最好吃:https://www.nbdhlw.com/h5/wankeql2/index.php  这个是链接  点击返回后执行
张小怂呦:

"url"的引号去掉试试

杯面最好吃:去了也没用。。

-EOF-

AI助手支持GPT4.0