Blogger Information
Blog 17
fans 0
comment 0
visits 23056
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
微信小程序页面跳转
飞鸿先森的博客
Original
1041 people have browsed it

微信小程序开发的时候会经常用到页面跳转,常见的跳转方式包括以下两种:

1.可以返回上一页面的跳转(跳转后之前的页面还在栈中,未关闭)

wx.navigateTo({  
  url: '../index/index?id=1'  
})

2.不可返回上一页面的跳转(跳转后上一页面已出栈,页面被关闭)

wx.redirectTo({  
  url: '../index/index?id=1'  
})

上面两种跳转方式都只能跳转到非tabar的页面,如果需要跳转回tabar页面,可以使用下面的跳转方法。

wx.reLaunch({  
      url: '../index/index',  
})

附:更多详细资料参考,请转到http://www.hishop.com.cn/xiaocx/show_47891.html

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post