码迷,mamicode.com
首页 > 其他好文 > 详细

百度前端学习日记20——定时器

时间:2018-07-17 20:42:10      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:前端学习   对象   art   日记   int   tin   function   自动   interval   

setTimeout("function",time) 设置一个超时对象

setInterval("function",time) 设置一个超时对象

SetInterval为自动重复,setTimeout不会重复。

clearTimeout(对象) 清除已设置的setTimeout对象

clearInterval(对象) 清除已设置的setInterval对象

百度前端学习日记20——定时器

标签:前端学习   对象   art   日记   int   tin   function   自动   interval   

原文地址:https://www.cnblogs.com/no-wing/p/9325690.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!