微信小程序页面三种跳转方式

时间:2020-12-30 11:18:34   收藏:0   阅读:24

  一、wx.navigateTo(OBJECT)

    wx.redirectTo({
      url: ‘test?id=1‘
    })

  二、wx.redirectTo(OBJECT)

    wx.redirectTo({
      url: ‘test?id=1‘
    })

  三、wx.switchTab(OBJECT)

    wx.switchTab({

      url: ‘/index‘

    })

  四、wx.reLaunch(OBJECT)

    

 

原文:https://www.cnblogs.com/yugueilou/p/14210027.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!