//同时发起多个请求时的处理
axios.all([get1(), get2()])
.then(axios.spread(function (res1, res2) {
// 只有两个请求都完成才会成功,否则会被catch捕获
}));
axios 处理并发请求
猜你喜欢
转载自www.cnblogs.com/mengfangui/p/9195184.html
今日推荐
周排行