2012年11月15日

javascript之setTimeOut和setInterval的用法(转)

摘要: JS里设定延时: 使用SetInterval和设定延时函数setTimeout 很类似。setTimeout 运用在延迟一段时间,再进行某项操作。 setTimeout("function",time) 设置一个超时对象 setInterval("function",time) 设置一个超时对象 SetInterval为自动重复,setTimeout不会重复。 clearTimeout(对象) 清除已设置的setTimeout对象 clearInterval(对象) 清除已设置的setInterval对象 使用定时器实现JavaScript的延期执行或重 阅读全文

posted @ 2012-11-15 18:57 benlamk 阅读(194) 评论(0) 推荐(0) 编辑

导航