此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

PerformanceTiming.domContentLoadedEventEnd

Deprecated

Avoid using this feature in new projects. This feature is supserseded by the PerformanceNavigationTiming API. This feature may be a candidate for removal from web standards or browsers.

Consider using the following features instead: PerformanceNavigation timing.

PerformanceTiming.domContentLoadedEventEnd 为只读属性,返回一个无符号长整型数值(unsigned long),以 UNIX 时间戳的形式表示一个时刻,这个时刻为所有需要尽早执行的脚本不管是否按顺序,都已经执行完毕。(译注:即 DOM Ready)

Syntax

time = performanceTiming.domContentLoadedEventEnd;

规范

因为 Navigation Timing 规范已被弃用,此特性不再有望成为标准。请使用 PerformanceNavigationTiming 接口代替。

浏览器兼容性

See also