💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
[TOC] #### Vue 实现登录获取验证码倒计时 ~~~ validateBtn() { let time = 60; let timer = setInterval(() => { if (time === 0) { clearInterval(timer); this.btnTitle = "获取验证码"; this.disabled = false; } else { // 倒计时 this.btnTitle = time + "秒后重试"; this.disabled = true; time--; } }, 1000); }, ~~~