摘要: var a = 0; //间隔执行 var b = setInterval(function(){ console.log(a++); if(a>5){ clearInterval(b); } },500); //延时执行 var c = setTimeout(function(){ alert(a); },2000); 阅读全文
posted @ 2017-07-05 14:08 咖啡漩涡 阅读(239) 评论(0) 推荐(0) 编辑