window.performance
window.performance: 用于测量网页和 Web 应用程序的性能
window.performance.getEntriesByType(): 返回一个 PerformanceEntry 对象的数组
window.performance.getEntriesByType("navigation")[0] :一般用于监控网页的性能
其中type属性有两个值,reload 表示重载,back_forward 表示回退
window.performance: 用于测量网页和 Web 应用程序的性能
window.performance.getEntriesByType(): 返回一个 PerformanceEntry 对象的数组
window.performance.getEntriesByType("navigation")[0] :一般用于监控网页的性能
其中type属性有两个值,reload 表示重载,back_forward 表示回退