timer:number;
start() {
this.timer=setInterval(()=>this.span.innerHTML=newDate().toTimeString(), 500);
}
stop(){
clearTimeout(this.timer);
}
timer:number;
start() {
this.timer=setInterval(()=>this.span.innerHTML=newDate().toTimeString(), 500);
}
stop(){
clearTimeout(this.timer);
}
本文标题:TypeScript超时设置
本文链接:https://www.haomeiwen.com/subject/jcvjaftx.html
网友评论