SyncEvent

非标
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

SyncEvent interface represents a sync action that is dispatched on the ServiceWorkerGlobalScope of a ServiceWorker.

This interface inherits from the ExtendableEvent 接口。

构造函数

SyncEvent.SyncEvent()
创建新的 SyncEvent 对象。

特性

Inherits properties from its ancestor, Event .

SyncEvent.tag 只读
Returns the developer-defined identifier for this SyncEvent .
SyncEvent.lastChance 只读
返回 true if the user agent will not make further synchronization attempts after the current attempt.

方法

Inherits methods from its parent, ExtendableEvent .

None.

浏览器兼容性

更新 GitHub 上的兼容性数据
Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
SyncEvent
非标
Chrome 49 Edge ≤79 Firefox ? IE ? Opera ? Safari ? WebView Android 不支持 No Chrome Android 49 Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android 5.0
SyncEvent() 构造函数
非标
Chrome 49 Edge ≤79 Firefox ? IE ? Opera ? Safari ? WebView Android 不支持 No Chrome Android 49 Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android 5.0
lastChance
非标
Chrome 49 Edge ≤79 Firefox ? IE ? Opera ? Safari ? WebView Android 不支持 No Chrome Android 49 Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android 5.0
tag
非标
Chrome 49 Edge ≤79 Firefox ? IE ? Opera ? Safari ? WebView Android 不支持 No Chrome Android 49 Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android 5.0

图例

完整支持
完整支持
不支持
不支持
兼容性未知
兼容性未知
实验。期望将来行为有所改变。
实验。期望将来行为有所改变。
非标。预期跨浏览器支持较差。