小程序删除元素后刷新当前页面


直接在提交的事件里面添加  that.onLoad();
前提:初始化的数据必须在that.onLoad()当中

success(res){ var that = this;        console.log(res)        if(res.data.code==0){           wx.showToast({            title: '取消预约成功',             icon: 'success',            duration: 1000,          })          that.onLoad();//刷新页面        }      },

TAG标签: 微信小程序刷新当前页面

http://www.xiaochengxub.com/read-105328.html