ReportingObserver: observe() Methode
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Hinweis: Diese Funktion ist in Web Workers verfügbar.
Die observe()
Methode des
ReportingObserver
Interfaces weist einen Reporting Observer an, mit dem Sammeln von Berichten in seiner Berichtsqueue zu beginnen.
Syntax
js
observe()
Parameter
Keine.
Rückgabewert
Keiner (undefined
).
Beispiele
js
const options = {
types: ["deprecation"],
buffered: true,
};
const observer = new ReportingObserver((reports, observer) => {
reportBtn.onclick = () => displayReports(reports);
}, options);
observer.observe();
Spezifikationen
Specification |
---|
Reporting API # dom-reportingobserver-observe |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
observe |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- User must explicitly enable this feature.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.