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