const array = [1,2,3,4,5]
const arr = await Promise.all(
array.map(async ele => {
// asyncHandle 异步函数
const list = await this.asyncHandle(ele);
return list;
})
);
上一篇

2021-01-22
下一篇

2020-12-16