{ console.log(res); //if(res.result==true){ if (!this" />

前端获取http状态码400的返回值实例

前端获取http状态码400的返回值实例

如下所示:

axios.get("/check_mobile_and_sent_code",{withCredentials:true,params:{mobile:formInline.mobile}}).then(res=>{            console.log(res);            //if(res.result==true){              if (!this.timer) {                this.count = this.TIME_COUNT;                this.show = false;                this.timer = setInterval(() => {                  if (this.count > 0 && this.count <= this.TIME_COUNT) {                    this.count--;                  } else {                    this.show = true;                    clearInterval(this.timer);                    this.timer = null;                  }                }, 1000)              }            /

tag:返回值状态码实例电脑软件HTTP

相关内容