<!-- 返回上一级 -->
<navigator open-type="navigateBack">返回</navigator>
<!--导航:小程序跳转方式
I navigator : ur1=""跳转的地址 页面的后缀省略,open-type=""跳转方式
--[
open-type='navigateTo'保留当前页面,跳转到应用内的某个页面。但是不能跳到tabbar 页面默认属性-->
<navigator url='../others/others' >redirectTo-新闻信息11-进入新闻详情页面</navigator>
<!--不可以tabBar页面的某个页面 -->
<navigator url='../others/others' open-type='navigateTo' >跳转tabBar我的</navigator>
<!--redirectTo:关闭当前页面,跳转到应用外的某个页面。 -->
<navigator url='../others/others'open-type='redirectTo' >redirectTo-新闻信息11-进入新闻详情页面</navigator>
<!-- switchTab: 跳装到tabBar应用页面 -->
<navigator url='../about/about' open-type="switchTab">tabBar我的页面</navigator>
<!-- reLaunch 关闭所有页面,打开到应用内的某个页面-->
<navigator url='../index/index'open-type='reLaunch'>reLaunch-新闻信息11-进入新闻详情页面</navigator>
<!--退出exit退出小程序 , target="miniProgram"吋生效-->
<navigator open-type="exit" target="miniProgram">退出小程序</navigator>
小程序导航的使用
最新推荐文章于 2023-07-08 11:07:09 发布