比如fetch(url).then(function(response){returnresponse.json();}).then(function(data){console.log(data);}).catch(function(e){console.log("Oops,error");});一般我们想要的数据在第二层then里面,那第一层then的respose有什么用,为什么还要return?里面是什么信息?状态码?
慕侠2389804
摇曳的蔷薇
随时随地看视频慕课网APP
相关分类