/**
* 测试方法
*/
startTime1(){
const num =1
this.timer = setInterval((num)=>{
console.log(num++)
},1000)
},
closeTime(){
clearInterval(this.timer)
}
vue定时器开启与关闭
最新推荐文章于 2024-05-28 10:02:16 发布
/**
* 测试方法
*/
startTime1(){
const num =1
this.timer = setInterval((num)=>{
console.log(num++)
},1000)
},
closeTime(){
clearInterval(this.timer)
}