微信小程序开发记录(实时更新..)

    xiaoxiao2022-07-05  164

    1、navigator 无法跳转 tabBar里的页面

    方案一:把 switchTab方法 替换navigator方法

    <view bindtap='click'>跳转</view> click: function() { wx.switchTab({ url: '目标页面', }) }

    方案二:在wxml里用 navigator 替代view

    <navigator url="目标页面" open-type='switchTab'>跳转</navigator>

     

     

     

    最新回复(0)