01.导航跳转
- 写法
<navigator url=""></navigator>
- 导航的
/
相当于会直接去miniprogram文件夹寻找 - 需要跳转到tabbar页面,需要添加
open-type="switchTab"
属性
open-type 的合法值 | 功能 |
---|---|
navigate | 保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面 |
redirect | 关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面 |
switchTab | 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面 |
reLaunch | 关闭所有页面,打开到应用内的某个页面 |
navigateBack | 返回上一层 |
exit | 退出小程序ÿ |