0
点赞
收藏
分享

微信扫一扫

【黄啊码】微信小程序无法跳转:navigateTo:fail can not navigateTo a tabbar page


【黄啊码】微信小程序无法跳转:navigateTo:fail can not navigateTo a tabbar page_微信小程序

刚接粗微信小程序,不少人会遇到这类问题,原因?

navigateTo 需要跳转的应用内非 tabBar 的页面的路径

跳转tabBar请用 wx.switchTab(url),跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面,比如:

【黄啊码】微信小程序无法跳转:navigateTo:fail can not navigateTo a tabbar page_微信_02

因为我这里使用的是操作成功后的提醒跳转,所以我加上了延迟跳转 

举报

相关推荐

0 条评论