SyncEvent:lastChance 属性

Limited availability

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

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

如果用户代理在当前尝试之后不会进行进一步的同步尝试,接口 SyncEvent 的只读属性 lastChance 将返回 true。这是通过 SyncEvent() 构造函数的 lastChance 参数传递的值。

一个布尔值,指示用户代理是否不会进一步在当前尝试后继续尝试同步。

规范

Specification
Web Background Synchronization
# ref-for-dom-syncevent-lastchance③

浏览器兼容性

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
lastChance

Legend

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

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