Performance API
The read-only detail property returns arbitrary metadata that was included in the measure upon construction (when using Performance.measure).
Value
Returns the value it was set to (from measureOptions of Performance.measure).
Examples
The following example demonstrates the detail property.
performance.measure("dog", { detail: "labrador", start: 0, end: 12345 });
const dogEntries = performance.getEntriesByName("dog");
dogEntries[0].detail; // labrador
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
