专题文章
时长:00:00更新时间:2020-11-27 15:25:12
如下所示。axios.get(";/check_mobile_and_sent_code";,{withCredentials:true,params:{mobile:formInline.mobile}}).then(res=>;{ console.log(res);//if(res.result==true){ if (使用场景。当后端判断验证的手机号已存在的时候会返回400,这时需要跳到error条件中,得到后台400的返回数据如上。以下是error.response返回值。这里如果直接输出error,等于error.message。附状态码为200的返回值。上面是我整理给大家的,希望今后会对有帮助。相关文章。
查看详情