uni.switchTab()
跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面。
效果图
点击按钮后
代码
先写个按钮,并监听点击
写点击事件
uni.switchTab()必须包含url
ok
官网:https://uniapp.dcloud.io/api/router?id=switchtab
uni.switchTab()
跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面。
效果图
点击按钮后
代码
先写个按钮,并监听点击
写点击事件
uni.switchTab()必须包含url
ok
官网:https://uniapp.dcloud.io/api/router?id=switchtab