非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。

SyncEvent() 构造函数创建新 SyncEvent 对象。

句法

var mySyncEvent = new SyncEvent(type, init)
					

参数

type

The type of the Event.

init 可选
An options object containing any custom settings that you want to apply to the event object. Options are as follows:
  • tag : A developer-defined unique identifier for this SyncEvent .
  • lastChance : A 布尔 indicating that the user agent will not make further synchronization attempts after the current attempt.

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
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

图例

完整支持

完整支持

不支持

不支持

兼容性未知 ?

兼容性未知

实验。期望将来行为有所改变。

实验。期望将来行为有所改变。

非标。预期跨浏览器支持较差。

元数据

  • 最后修改: