经常遇到事件记载完毕 不知道怎么返回当前页面
可以使用 var that= this
that.onLoad(); 重新发起页面请求
也可以设置 定时任务 自动完成 举个例子
setTimeout(()=>{
wx.showToast({
icon:'success',
duration: 2000
})
that.onLoad();
},5000)
5000就是延迟5秒 将setTimeout放在你的请求方法里面 完成请求以后自动加载that.onLoad()请求 重新加载页面数据