Javascript定时器

时间:2014-08-29 15:56:48   收藏:0   阅读:148
setTimeout("function",time) 设置一个超时对象

setInterval("function",time) 设置一个超时对象 SetInterval为自动重复

setTimeout不会重复。 clearTimeout(对象) 清除已设置的setTimeout对象 clearInterval(对象) 清除已设置的setInterval对象

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!