摘要: //定义一个异步函数 const foo1 = (i) => { return new Promise((resolve, reject) => { setTimeout(() => { console.log(I) resolve(i) }, 3000) }) } const arr = [1, 阅读全文
posted @ 2022-10-14 14:50 lzhflzjx 阅读(196) 评论(0) 推荐(0) 编辑