navigateTo can't navigate to tabBar page
发布于 4 年前 作者 xiaming 10275 次浏览 来自 问答

//事件处理函数

  morepage: function(e) {

    console.log(e);

    wx.navigateTo({

      url: ‘…/more/more’,

      fuccess:function(s){console.log(s);},

       fail:function(f){console.log(f);},

       complete:function©{console.log©;}

    })

  }

报错:

  1. Object {errMsg"navigateTo:fail can not navigate to tabBar page"}

    1. errMsg:"navigateTo:fail can not navigate to tabBar page"

    2. __proto__:Object

点击按钮,跳转到tabbar页面不能跳转哦,没更新的时候还可以跳转,更新了就不行了

1 回复

知道了,说是更新成wx.switchTab({})了

回到顶部