miniPrograms(页面跳转)

页面平行跳转(无返回标志,跳转时触发onUnload)

wx:wx.redirectTo({
     url: '../posts/posts'
   });

页面主从跳转(有返回标志,跳转时触发onHide)

wx.navigateTo({
    url: '../posts/posts'
  })

你可能感兴趣的:(miniPrograms(页面跳转))