window屬性:performance

2018-06-28 11:05 更新

performance屬性

該Window接口的performance屬性返回一個(gè)Performance對(duì)象,該對(duì)象可用于收集有關(guān)當(dāng)前文檔的性能信息。它充當(dāng)性能時(shí)間表API,高分辨率時(shí)間API,導(dǎo)航時(shí)間API,用戶時(shí)間API和資源定時(shí)API的曝光點(diǎn)。

performance屬性語法

performanceData = window.performance;

performance屬性值

一個(gè)Performance對(duì)象,用于訪問它所暴露的API提供的與性能和時(shí)間相關(guān)的信息。

規(guī)范

規(guī)范 狀態(tài) 注釋
高分辨率時(shí)間
該規(guī)范中'window.performance'的定義。
Recommendation
定義now()方法

瀏覽器兼容性

電腦端 移動(dòng)端
Chrome
Edge
Firefox
Internet Explorer
Opera
Safari
Android webview
Chrome for Android
Edge Mobile Firefox for Android
Opera for Android
iOS Safari
基本支持 支持:6 支持 支持:7 支持:9 支持:15 支持:8 支持 支持 支持 支持:7 支持:15 支持:9
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)