随笔分类 -  前台 - 时间

摘要:毫秒值 -> 时间 var date = new Date(1477386005*1000); 阅读全文
posted @ 2018-09-06 16:30 萧韶九成 阅读(145) 评论(0) 推荐(0) 编辑
摘要:this.timer = setInterval(dojo.hitch(this, function(){ this.initData(); }), 3000); if(this.timer){ clearInterval(this.timer); this.timer = null; } 阅读全文
posted @ 2018-09-06 16:29 萧韶九成 阅读(137) 评论(0) 推荐(0) 编辑
摘要:dojosetTimeout(dojo.hitch(this, function(){ this.onClickCount(); }), 3000); 普通应用在js中,延迟执行函数有两种,setTimeout和setInterval,用法如下: function testFunction(){Co 阅读全文
posted @ 2018-09-06 16:27 萧韶九成 阅读(9643) 评论(1) 推荐(1) 编辑

点击右上角即可分享
微信分享提示