摘要:
var that = this;that.hello().then(res => { return that.world(res);}).then(res => { console.log(res); }) function hello(){ var that = this; var p = new 阅读全文
摘要:
data: { pageNo: 1,//当前页 pageSize: 10,//每页条数 count:'',//总条数 orderList: [], }, onLoad: function () { var that = this; var data = `${that.data.type}/${th 阅读全文
摘要:
1.在app.js的onLaunch中添加如下方法: App({ onLaunch: function () { var that = this; wx.onNetworkStatusChange(function (res) { if (res.networkType == 'none') { t 阅读全文