To schedule execution of callback
after delay
milliseconds. Returns a
timeoutId
for possible use with clearTimeout()
. Optionally, you can
also pass arguments to the callback.
设定一个delay
毫秒后执行callback
回调函数的计划。返回值timeoutId
可被用于clearTimeout()
。可以设定要传递给回调函数的参数。
Prevents a timeout from triggering.
清除定时器,阻止指定的timeout(超时)定时器被触发。
To schedule the repeated execution of callback
every delay
milliseconds.
Returns a intervalId
for possible use with clearInterval()
. Optionally,
you can also pass arguments to the callback.
设定一个每delay
毫秒重复执行callback
回调函数的计划。返回值intervalId
可被用于clearInterval()
。可以设定要传递给回调函数的参数。
Stops a interval from triggering.
清除定时器,阻止指定的interval(间隔)定时器被触发。