Promise的.then .catch

 

 定义一个promise

Promise的.then .catch

调用promise  如果promise的状态为resolve 则 执行 .then   否则执行.catch

Promise的.then .catch

 

 

可以有多个.then  会按顺序执行  

 

axios.post  可以后面跟多个then

 

Promise的.then .catch

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2021-09-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案