- 微信小程序Onload函数内如何实现同步按顺序执行?
onLoad:async function (options) { var that=this; //app.sbtypelist(appUrl + "Device/GetDeviceTypes",that); //app.typelist(appUrl,that); await wx.request({ url: appUrl + "PigPen/GetPigpenTypes", data: {}, header: { 'content-type': 'application/json' }, method: 'GET', dataType: 'json', success: function (res) { var list = []; var listId = []; if (res.data.success == "1") { for (var i = 0; i < res.data.data.length; i++) { list.push(res.data.data[i].PigpenTypeName); listId.push(res.data.data[i].PigpenTypeId); } that.setData({ lsTypeList: list, lsTypeListId: listId, navtab: listId[0], }) //栋号列表 await app.GetBuildingList(appUrl + "PigPen/GetBuildingList", 0, that, listId[0]); let ScWord = that.data.ScWord; let PageSize = that.data.PageSize; let PageIndex = that.data.PageIndex; await app.equipList(listId[0], that, ScWord, PageSize, PageIndex); } }, fail: function (res) { }, complete: function (res) { }, }) },
2022-01-20 - 请问提示net::ERR_SSL_PROTOCOL_ERROR错误如何解决?
请问提示net::ERR_SSL_PROTOCOL_ERROR错误如何解决?[图片]
2018-08-13 - 预览出现“本次编译异常2”如何解决
预览出现“本次编译异常2”如何解决?[图片]
2018-07-27