微信小程序页面跳转方法总结

2019-01-27  本文已影响4人  爱貌貌Manners

一、JS文件中跳转


二、wxml 页面组件跳转「navigator组件」

实例

//1.直接使用
<navigator url="../../redirect/redirect/redirect?title=redirect" open-type="redirect" hover-class="other-navigator-hover">在当前页打开</navigator>

//2.包裹控件使用
<navigator url="../../redirect/redirect/redirect?title=redirect" open-type="redirect" hover-class="other-navigator-hover">
<button>在当前页打开</button>
</navigator>

上一篇 下一篇

猜你喜欢

热点阅读