axios

axios.get('/user?ID=12345').then(function (res) {
    console.log(res);
})
.catch(function (error) {
    console.log(error);
});
原文地址:https://www.cnblogs.com/yuyedaocao/p/11984867.html