63

记一次axios源码排查

 5 years ago
source link: https://juejin.im/post/5b9b7be8e51d450e704258a0
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
一、axios介绍 现在社区中有数量庞大的ajax(http)库,为何选择使用axios呢? 首先,因为它提供的API是Promise式的,目前业务代码基本都已经使用async/await来包裹异步api了。 那为何不使用基于fetch的类库呢? 因为,选用a

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK