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;
})
);
上一篇
background-iamge
2021-01-22
下一篇
兼容iPhone X*刘海屏
2020-12-16