页面跳转switchTab按钮无法跳转,是什么原因呢?

发布于 8 年前作者 cuichao7506 次浏览最后编辑 8 年前来自 ask
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 回复
min06
min061 楼6 年前

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

ccui
ccui2 楼6 年前
switchTap  switchTab  能仔细点吗?大佬