代码
async initRealiableData(){
const result = await Promise.all(XXX.map(async (item)=>async ()=>{
const [timeNum,distanceNum] = await this._getReliableSetting(item)
return [timeNum,distanceNum]
})())
}
代码
async initRealiableData(){
const result = await Promise.all(XXX.map(async (item)=>async ()=>{
const [timeNum,distanceNum] = await this._getReliableSetting(item)
return [timeNum,distanceNum]
})())
}
评论 (0)