resultingClientId
只读特性在
FetchEvent
interface is the
id
的
client
that replaces the previous client during a page navigation.
For example, when navigating from page A to page B
resultingClientId
is the ID of the client associated with page B.
If the fetch request is a subresource request or the request's
destination
is
report
,
resultingClientId
will be an empty string.
var myResultingClientId = fetchEvent.resultingClientId;
A
DOMString
.
self.addEventListener('fetch', function(event) {
console.log(event.resultingClientId);
});
| 规范 | 状态 | 注释 |
|---|---|---|
|
服务工作者
The definition of 'resultingClientId' in that specification. |
工作草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
resultingClientId
|
Chrome 72 | Edge 18 | Firefox 65 | IE 不支持 No | Opera 60 | Safari 不支持 No | WebView Android 72 | Chrome Android 72 | Firefox Android 65 | Opera Android 50 | Safari iOS 不支持 No | Samsung Internet Android 11.0 |
完整支持
不支持
FetchEvent
client
clientId
isReload
navigationPreload
PreloadRequest
preloadResponse
replacesClientId
request
resultingClientId
缓存
CacheStorage
Client
Clients
ExtendableEvent
InstallEvent
Navigator.serviceWorker
NotificationEvent
PeriodicSyncEvent
PeriodicSyncManager
PeriodicSyncRegistration
ServiceWorker
ServiceWorkerContainer
ServiceWorkerGlobalScope
ServiceWorkerRegistration
SyncEvent
SyncManager
SyncRegistration
WindowClient