fn1(){
return axios.get('/fn1')
}
fn2() {
return axios.get('/fn2')
}
axios.all([
fn1();
fn2();
]).then(axios.spread((res1, res2) => {
console.log(res1);
console.log(res2);
}));
axios 请求并发
使用axios并发请求示例
最新推荐文章于 2024-09-06 13:56:07 发布

203

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



