ServiceWorkerRegistration:sync 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

io error: No such file or directory (os error 2) (/home/runner/work/yari/yari/mdn/translated-content/files/zh-cn/web/api/serviceworkerregistration/index.md)

安全上下文: 此项功能仅在一些支持的浏览器安全上下文(HTTPS)中可用。

备注: 此特性在 Web Worker 中可用。

ServiceWorkerRegistration 接口的 sync 只读属性返回管理后台同步进程的 SyncManager 接口的引用。

SyncManager 对象。

规范

Specification
Web Background Synchronization
# dom-serviceworkerregistration-sync

浏览器兼容性

BCD tables only load in the browser