BackgroundFetchRegistration:id 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
备注: 此特性在 Web Worker 中可用。
BackgroundFetchRecord
接口的只读属性 id
返回后台获取操作的 ID
的副本。
值
字符串。
示例
访问该属性以获取注册时设置的标识符,并将其打印在控制台中。在本例中为 "my-fetch"
。
js
console.log(bgFetch.id); // “my-fetch”
规范
Specification |
---|
Background Fetch> # dom-backgroundfetchregistration-id> |
浏览器兼容性
Loading…