📅  最后修改于: 2022-03-11 15:01:17.100000             🧑  作者: Mango
if (error.response){
//do something
}else if(error.request){
//do something else
}else if(error.message){
//do something other than the other two
}