2023-3-27 Promise.all()无论成功还是失败都会返回所有结果

59 阅读1分钟
Promise.all(promiseList.map((p) => p.catch((e) => e))).then((res: any) => {  
  console.log(res)
});