app.js
collectpy : function(){
wx.cloud.callFunction({
name:'collectgroup',
success: res => {
let r = res.result.list
if (this.testCallBack){this.testCallBack(r)}
wx.setStorageSync('collectgroup', r)
console.log('a')
},
});
},
order.js
app.collectpy(),
console.log('b')
程序是先输出的"b",后输出的"a",如何先输出"a",再输出"b",让程序按顺序执行
async await