ES6中Fetch的封装及使用,炒鸡简单~

以前写过一篇《ajax、axios、fetch之间的详细区别以及优缺点》 戳这里javascript 1.封装 (http.js) class Ajax { get(url) { return new Promise((resolve, reject) => { fetch(url) .then(res => res.json()) .the
相关文章
相关标签/搜索