方沐沐
2020-09-20 10:10
let timer = setInterval( handler: () => {
this.time --
this.btnText='$(this.time)s后重新发送'
this.disabled = true
if (this.time == 0){
this.disabled = false
this.btnText = '重新发送'
this.time = this.countDown
clearInterval ( timer)
}
}, timeout: 1000)
handler:删除
基于Element-UI二次封装业务组件
11544 学习 · 30 问题
相似问题