54

为何要再封装 AJAX?

 5 years ago
source link: https://juejin.im/post/5be8d9026fb9a049a81ed6d6
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.create(),使用axios.create()可以解决下面说的1 、2、3、5点,楼主也建议使用这种方式,既然axios已经提供了这样的API,那么也没必要像本文这种方式实现,有点多此一举的嫌疑。所以本文在很大程度上

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK