项目中启动定时器,如果没有停止然后更新数据的话,容易产生多个定时器,所以先取消再启动
Scheduler 类型
官方API
this.timer = function () { //do something } this.schedule(that.timer,1,Number(setSecondTime)-1) //停止的时候就是这样 unschedule(this.timer);
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!