页面跳转switchTab按钮无法跳转,是什么原因呢?
发布于 7 年前 作者 cuichao 7345 次浏览 来自 问答
wxml中:
switchTab:function() {
    wx.switchTab({
      url: '/pages/list/list'
    })
 },
js中:
<button bindtap="switchTap">跳转到组件Tab页</button>
错误警告提示:
Component "pages/tapevent/tapevent" does not have a method "switchTap" to handle event "tap".

2 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

switchTap  switchTab  能仔细点吗?大佬

 

回到顶部