should I use fetch() with .then or async/await

前端 未结 0 839
再見小時候
再見小時候 2020-12-10 04:31

The following pieces of code are giving me the same result. What is the difference between the use of .then and async/await to fetch data?

// Code 1

function         


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