十六.axios的原理

18 阅读1分钟
  • 用promise包装原生ajax的api
  • resolve中返回ajax成功的请求
  • reject中返回ajax失败的请求