|
官方文档参数说明:https://developers.weixin.qq.com/miniprogram/dev/component/navigator.html
open-type 的合法值
相关总结: navigate:保留当前页面,跳转到应用内的某个页面 redirect:关闭当前页面,跳转到应用内的某个页面 reLaunch :关闭所有页面,打开到应用内的某个页面 switchTab:跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面 navigateBack:返回上一个页面 注意事项: 1. app.json中设置了tabBar的配置页面,必须使用open-type为"swtichTab"进行跳转,其它类型不生效 2. tab条,只有配置的tab页,才能看到,其它页面看不到 3. 默认navigator,有返回图标 4. redirect ,没有返回图标 5. 由于小程序页面有层数限制,目前打开的页面最多只能有 5 层 参考 :https://blog.csdn.net/u010496966/article/details/86470964 |
|||||||||||||||
|