摘要: 转自:http://zou-jiao.iteye.com/blog/1606872在js中,延迟执行函数有两种:setTimeout和setInterval,用法如下:setTimeout("test()","2000"); //2000毫秒后执行test()函数,只执行一次。setInterval("test()","2000"); //每隔2000毫秒执行一次test()函数,执行无数次。var interval = window.setInterval("test()","200 阅读全文
posted @ 2013-01-06 21:32 horizon~~~ 阅读(106739) 评论(0) 推荐(1) 编辑