字节小程序页面跳转
navigator组件跳转
<navigator
url="navigate?title=navigate"
open-type="navigate"
hover-class="navigator-hover"
hover-start-time="50"
hover-stay-time="400"
hover-stop-propagation="{{false}}"
>
<button type="default">跳转到新页面(navigate 方式)</button>
</navigator>2.api跳转
js文件
函数名:function(参数名){
tt.navigateTo({
url:'/pages/lun/lun'
})
}ttml文件
<view class="w2" bindtap='函数名'>xxxxxx</view>
上述两种方式都能实现跳转。
zhangsir版权t6防采集https://mianka.xyz
