📅  最后修改于: 2022-03-11 15:02:00.742000             🧑  作者: Mango
axios.get('/foo')
.catch(function (error) {
if (error.response) {
console.log(error.response.data);
console.log(error.response.status);
console.log(error.response.headers);
}
});