JavaScript中setInterval定时器用法
var int = setInterval("doSomething()", 5000 ); /* 5 seconds */ var int = setInterval(doSomething, 5000 ); /* same thing, no quotes, no parens */
JavaScript中setInterval定时器用法
var int = setInterval("doSomething()", 5000 ); /* 5 seconds */ var int = setInterval(doSomething, 5000 ); /* same thing, no quotes, no parens */