SyncManager:getTags() 方法

Limited availability

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

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

SyncManager 接口的 getTags() 方法返回开发人员定义的用于 SyncManager 注册的标识符列表。

语法

js
getTags()

参数

无。

返回值

一个 Promise,兑现为包含开发人员定义的用于 SyncManager 注册的标识符的字符串数组。

规范

Specification
Web Background Synchronization
# dom-syncmanager-gettags

浏览器兼容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
getTags

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.