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

View in English Always switch to English

PerformanceTiming.redirectStart

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.redirectStart 是一个返回代表一个时刻的 unsigned long long 型只读属性,为第一个 HTTP 的重定向开始的时刻的 Unix 毫秒时间戳。如果重定向没有发生,或者其中一个重定向非同源,则该值返回 0

语法

time = performanceTiming.redirectStart;

规范

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

浏览器兼容性

参见