fetch: inspect return value along side with json parsing

后端 未结 0 593
野趣味
野趣味 2021-02-20 09:38

This question is about how to handle promise. Example:

fetch(url)
  .then(res =>  res.json() )
  .then(data => console.log(data) )
  .catc         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题