JinXin
Results
5
comments of
JinXin
这题不能用 promise 吗
Promise.all 包4个fetch ?
```js function getData(urls) { return new Promise((resolve, reject) => { const res = Array.from({ length: urls.length }); urls.forEach((url, i) => fetch(url).then(data => { res[i] = [i, data]; check(); }, reject)...
@lawler61 你这个直接return res怕是不得行哦