美文网首页
navigator小程序组件

navigator小程序组件

作者: 一枚小菜 | 来源:发表于2020-07-20 21:33 被阅读0次

navigator

导航组件 类似超链接标签

属性名 类型 默认值 说明
target String self 在哪个目标上发生跳转,默认当前小程序,可选值self(当前小程序)/miniProgram(其他小程序)
url String ---- 当前小程序内的跳转链接
open-type String navigate 跳转方式

open-type 合法值:

说明
navigate 保留当前页面,跳转到应用内的某个页面,但是不能跳到 tabbar 页面
redirect 关闭当前页面,跳转到应用内的某个页面,但是不允许跳转到 tabbar 页面。
switchTab 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
reLaunch 关闭所有页面,打开到应用内的某个页面
navigateBack 关闭当前页面,返回上一页面或多级页面。可通过 getCurrentPages 获取当前的页面栈,决定需要返回几层
exit 退出小程序,target="miniProgram"时生效

相关文章

网友评论

      本文标题:navigator小程序组件

      本文链接:https://www.haomeiwen.com/subject/zjawkktx.html