wx.showToast({
        title: '成功',
        icon: 'success',
        duration: 2000,
        success:function(){
          console.log('haha');
          setTimeout(function () {
            //要延时执行的代码
            wx.switchTab({
              url: '../user/user'
            })
          }, 2000) //延迟时间
        }
      })

 关注微信公众:lovephp

微信小程序 提示框延时跳转

相关文章:

  • 2021-12-30
  • 2021-12-22
  • 2021-12-22
  • 2021-12-05
  • 2021-12-12
  • 2021-11-23
  • 2021-12-19
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2022-02-03
  • 2021-12-26
  • 2021-07-16
  • 2021-04-30
  • 2021-08-29
相关资源
相似解决方案