<navigator open-type
="navigate" url
="/page/navigate/navigate?title=navigate">
跳转新页面并可以返回上一级,不能跳tab页
</navigator
>
<navigator url
="../../redirect/redirect/redirect?title=redirect"
open-type
="redirect">关闭当前页打开新页面不可返回,不能跳tab页
</navigator
>
<navigator url
="/page/index/index" open-type
="switchTab">
关闭当前所有页跳转至tab页
</navigator
>
<navigator target
="miniProgram" open-type
="navigate" app-id
="" path
="" extra-data
="" version
="release">打开绑定的小程序
</navigator
>
<navigator open-type
=="reLaunch">关闭所有页面跳转至其它页面或tab页
</navigator
>
<navigator open-type
=="navigateBack" delta
=1
>关闭当前页跳转上一级页面可设置delta返回前几页
</navigator
>
</view
>
/*url:可使用绝对或者相对路径*/
转载请注明原文地址:https://tech.qufami.com/read-18864.html