Navigator
页面链接。扫码体验:
属性名 | 类型 | 默认值 | 描述 | 最低版本 |
---|
open-type | String | navigate | 跳转方式 | |
hover-class | String | none | 点击时附加的类 | |
hover-start-time | Number | | 按住后多事件后出现点击状态,单位毫秒 | |
hover-stay-time | Number | | 手指松开后点击状态保留时间,单位毫秒 | |
url | String | | 应用内的跳转链接 | |
open-type有效值
示例代码
<view class="btn-area">
<navigator url="/page/navigate/navigate?title=navigate" hover-class="navigator-hover">跳转到新页面</navigator>
<navigator url="../../redirect/redirect/redirect?title=redirect" open-type="redirect" hover-class="other-navigator-hover">在当前页打开</navigator>
<navigator url="/page/index/index" open-type="switchTab" hover-class="other-navigator-hover">切换 Tab</navigator>
</view>
原文: https://docs.alipay.com/mini/component/navigator