const p1= this.mapCtx.getScale({
success(res) {
that.getmarks.scale = res.scale
},
})
const p2=this.mapCtx.getCenterLocation({
success(res) {
that.getmarks = Object.assign(that.getmarks, {
longitude: res.longitude,
latitude: res.latitude,
})
}
})
const p3=this.mapCtx.getRegion({
success(res) {
that.getmarks = Object.assign(that.getmarks, {
'northeast[latitude]': res.northeast.latitude,
'northeast[longitude]': res.northeast.longitude,
'southwest[latitude]': res.southwest.latitude,
'southwest[longitude]': res.southwest.longitude,
})
}
})
上面3个回调没执行完,then里面的回调怎么就先执行了啊
上面3个回调没执行完,then里面的回调怎么就先执行了啊
上面3个回调没执行完,then里面的回调怎么就先执行了啊
Promise.all([p1, p2, p3]).then(()=>{
})
上面3个回调没执行完,then里面的回调怎么就先执行了啊
Promise.all([p1, p2, p3]).then(()=>{
})
const p1= this.mapCtx.getScale({
success(res) {
that.getmarks.scale = res.scale
},
})
const p2=this.mapCtx.getCenterLocation({
success(res) {
that.getmarks = Object.assign(that.getmarks, {
longitude: res.longitude,
latitude: res.latitude,
})
}
})
const p3=this.mapCtx.getRegion({
success(res) {
that.getmarks = Object.assign(that.getmarks, {
'northeast[latitude]': res.northeast.latitude,
'northeast[longitude]': res.northeast.longitude,
'southwest[latitude]': res.southwest.latitude,
'southwest[longitude]': res.southwest.longitude,
})
}
})
上面3个回调没执行完,then里面的回调怎么就先执行了啊
上面3个回调没执行完,then里面的回调怎么就先执行了啊
上面3个回调没执行完,then里面的回调怎么就先执行了啊
Promise.all([p1, p2, p3]).then(()=>{
})
上面3个回调没执行完,then里面的回调怎么就先执行了啊