BackgroundFetchRegistration: id-Eigenschaft

Limited availability

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

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

Experimentell: Dies ist eine experimentelle Technologie
Überprüfen Sie die Browser-Kompatibilitätstabelle sorgfältig vor der Verwendung auf produktiven Webseiten.

Hinweis: Diese Funktion ist in Web Workers verfügbar.

Die id-Schreibgeschützte Eigenschaft des BackgroundFetchRegistration-Interfaces gibt eine Kopie der ID des Hintergrundabholens zurück.

Wert

Ein String.

Beispiele

Wenn dieser Teil in die Konsole protokolliert wird, wird die beim Registrieren des Abrufs gesetzte Kennung zurückgegeben. In diesem Fall "my-fetch".

js
console.log(bgFetch.id); // "my-fetch"

Spezifikationen

Specification
Background Fetch
# dom-backgroundfetchregistration-id

Browser-Kompatibilität