wx.showToast({ title: "修改成功", icon: "success", mask: true, duration: 1000, success: function () { setTimeout(() => { wx.navigateBack(); }, 1000); } })
wx.showToast({ title: "发布成功", icon: "success", mask: true, duration: 1000, success: function () { setTimeout(() => { wx.navigateTo({ url: '/pages/myArticle/myArticle', success: function () { var page = getCurrentPages().pop(); if (page == undefined || page == null) return; page.onLoad(); } }); }, 1000); } })
wx.showToast({ title: "登录成功", icon: "success", mask: true, duration: 1000, success: function () { setTimeout(() => { wx.switchTab({ url: '/pages/me/me', success:function(){ var page = getCurrentPages().pop(); if (page == undefined || page == null) return; page.onLoad(); } }); }, 1000); } })
标签:function,showToast,success,跳转,1000,page,wx From: https://www.cnblogs.com/haikuotiankong1/p/18341887