fiveGo(){
const TIME_COUNT = 5;
let that=this
if(!that.timer){
that.infoStopTime = TIME_COUNT;
that.timer = setInterval(()=>{
if(that.infoStopTime > 0 && that.infoStopTime <= TIME_COUNT){
that.infoStopTime--;
}else{
that.timer? clearInterval(that.timer):""
that.timer = null;
}
},1000)
}
},
倒数方法js
最新推荐文章于 2022-08-24 09:21:33 发布