定时器

this.timer = setInterval(dojo.hitch(this, function(){

            this.initData();

        }), 3000);

if(this.timer){

clearInterval(this.timer);

            this.timer = null;

}

原文地址:https://www.cnblogs.com/7q4w1e/p/9599230.html