首页
软件开发
登录
6mi
u
盘
搜
搜 索
软件开发
微信小程序开发记录(实时更新..)
微信小程序开发记录(实时更新..)
xiaoxiao
2022-07-05
165
1、navigator 无法跳转 tabBar里的页面
方案一:把 switchTab方法 替换navigator方法
<view bindtap='click'>跳转</view> click: function() { wx.switchTab({ url: '目标页面', }) }
方案二:在wxml里用 navigator 替代view
<navigator url="目标页面" open-type='switchTab'>跳转</navigator>
转载请注明原文地址: https://yun.8miu.com/read-25595.html
最新回复
(
0
)