setTimeout & setInterval

setTimeout Method

Evaluates an expression after a specified number of milliseconds has elapsed.

Syntax

?? iTimerID = window.setTimeout(vCode, iMilliSeconds [, sLanguage])

setInterval Method

Evaluates an expression each time a specified number of milliseconds has elapsed.

Syntax
?? iTimerID = window.setInterval(vCode, iMilliSeconds [, sLanguage])

?

For more on?msdn

你可能感兴趣的:(setTimeout & setInterval)