let clock = setInterval(() => {
this.codeTime--;
this.codeCont = this.codeTime + "s后重新获取";
if (this.codeTime < 0) {
clearInterval(clock);
this.codeCont = "获取验证码";
this.codeTime = 60;
this.disable = false;
}
}, 1000);
倒计时。。
于 2023-03-19 00:55:27 首次发布