res=>{}的意思

Posted on 2020-07-16 17:15  LuckyCola  阅读(3200)  评论(0)    收藏  举报

res=>return res.json()

then(res=>{
           return res.json()
       }) 

也可以写成

then(res=>return res.json()) 

  

相当于

function (res) {

return res.json()

}