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

View in English Always switch to English

PerformanceTiming.connectEnd

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.connectEnd 这个只读属性返回一个无符号长整型,它以毫秒为单位,代表了网络链接建立的时间节点。如果传输层报告了错误或者链接又被重新建立,则采用最后一次链接建立的时间。如果链接是长久的,那么这个值等同于PerformanceTiming.fetchStart。链接被认为打开以所有的链接握手,SOCKS 认证结束为标志。

Syntax

time = performanceTiming.connectEnd;

规范

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

浏览器兼容性

See also