该方法返回当前缓冲区中的所有性能数据。
xhs.getPerformance().getEntries()
无
Array, PerformanceEntry 集合。
const entries = xhs.getPerformance && xhs.getPerformance().getEntries(); for (let i = 0, len = entries.length; i < len; i++) { console.log("entry name: " + entries[i].name); console.log("entry entryType: " + entries[i].entryType); console.log("entry startTime: " + entries[i].startTime); console.log("entry duration: " + entries[i].duration); console.log("entry value: " + entries[i].value); }