單個fetch+async(async() => { try { var response = await fetch(url); var data = await response.json(); console.log(data); } catch (e) { console.log("Booo") }})();如何像$.when一樣發(fā)起多個請求 $.when(...reqArr).done(function (...data) { } 類似requestByFetch(urls)
怎么用fetch+async模擬jQuery.when
慕容3067478
2018-11-13 17:15:33