es6中fetch-api

指定需要请求的url地址,通过第一个. then得到一个response对象,想要拿到最终数据调用response.json返回一个新的promise,把第一个.then中的promise,return,通过第二个.then就可以处理数据结果
相关文章
相关标签/搜索