随笔分类 - 前台 - 时间
摘要:毫秒值 -> 时间 var date = new Date(1477386005*1000);
阅读全文
摘要:this.timer = setInterval(dojo.hitch(this, function(){ this.initData(); }), 3000); if(this.timer){ clearInterval(this.timer); this.timer = null; }
阅读全文
摘要:dojosetTimeout(dojo.hitch(this, function(){ this.onClickCount(); }), 3000); 普通应用在js中,延迟执行函数有两种,setTimeout和setInterval,用法如下: function testFunction(){Co
阅读全文