移除拦截器
var myInterceptor = axios.interceptors.request.use(function () {/*...*/});
axios.interceptors.request.eject(myInterceptor);
为自定义axios添加拦截器
var instance = axios.create();
instance.interceptors.request.use(function () {/*...*/});
移除拦截器
var myInterceptor = axios.interceptors.request.use(function () {/*...*/});
axios.interceptors.request.eject(myInterceptor);
为自定义axios添加拦截器
var instance = axios.create();
instance.interceptors.request.use(function () {/*...*/});
7万+
2691

被折叠的 条评论
为什么被折叠?