【文件属性】:
文件名称:vue中axios.js
文件大小:45KB
文件格式:JS
更新时间:2020-04-20 09:43:31
axios
vue中的ajax
axios.get('/user?ID=12345')
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.then(function () {
// always executed
});