We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

翻譯不完整。請協助 翻譯此英文文件

WindowTimers is a mixin used to provide utility methods which set and clear timers. No objects of this type exist; instead, its methods are available on Window for the standard browsing scope, or on WorkerGlobalScope for workers.

屬性

WindowTimers 介面沒有繼承也沒有定義任何屬性。

方法

除以下自身方法外,WindowTimers 介面提沒有任何繼承方法。

WindowTimers.clearInterval()
Cancels the repeated execution set using WindowTimers.setInterval().
WindowTimers.clearTimeout()
Cancels the delayed execution set using WindowTimers.setTimeout().
WindowTimers.setInterval()
Schedules a function to execute every time a given number of milliseconds elapses.
WindowTimers.setTimeout()
Schedules a function to execute in a given amount of time.

規範

Specification Status Comment
HTML Living Standard
The definition of 'WindowTimers' in that specification.
Living Standard No change since the latest snapshot, HTML 5.1.
HTML 5.1
The definition of 'WindowTimers' in that specification.
Recommendation Snapshot of HTML Living Standard. No change.
HTML5
The definition of 'WindowTimers' in that specification.
Recommendation Snapshot of HTML Living Standard. Creation of WindowBase64 (properties where on the target before it).

瀏覽器相容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Firefox (Gecko) Chrome Internet Explorer Opera Safari
Basic support 1.0 (1.7 or earlier) 1.0 4.0 4.0 1.0
Feature Firefox Mobile (Gecko) Android IE Mobile Opera Mobile Safari Mobile
Basic support 1.0 (1) (Yes) (Yes) (Yes) (Yes)

 

參見

文件標籤與貢獻者

此頁面的貢獻者: jackblackevo
最近更新: jackblackevo,