单个fetch+async(async() => { try { var response = await fetch(url); var data = await response.json(); console.log(data); } catch (e) { console.log("Booo") }})();如何像$.when一样发起多个请求 $.when(...reqArr).done(function (...data) { } 类似requestByFetch(urls)
添加回答
举报
0/150
提交
取消