流浪のwolf

卷帝

导航

2024年6月9日

封装一个Promise.all 的函数

摘要: // 1. 准备三个异步函数 const promise1 = Promise.resolve('prom11ise1'); const promise2 = new Promise(function (resolve, reject) { setTimeout(resolve, 2000, 'pr 阅读全文

posted @ 2024-06-09 21:05 流浪のwolf 阅读(2) 评论(0) 推荐(0) 编辑