diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/performancetiming | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/performancetiming')
22 files changed, 1098 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/performancetiming/connectend/index.html b/files/zh-cn/web/api/performancetiming/connectend/index.html new file mode 100644 index 0000000000..11668e695d --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/connectend/index.html @@ -0,0 +1,49 @@ +--- +title: PerformanceTiming.connectEnd +slug: Web/API/PerformanceTiming/connectEnd +translation_of: Web/API/PerformanceTiming/connectEnd +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="Summary">Summary</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.connectEnd</code></strong> 这个只读属性返回一个无符号长整型,它以毫秒为单位,代表了网络链接建立的时间节点。如果传输层报告了错误或者链接又被重新建立,则采用最后一次链接建立的时间。如果链接是长久的,那么这个值等同于{{domxref("PerformanceTiming.fetchStart")}}。链接被认为打开以所有的链接握手,SOCKS认证结束为标志。</p> + +<h2 id="Syntax">Syntax</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.connectEnd;</pre> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-connectend', 'PerformanceTiming.connectEnd')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<div> +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.connectEnd")}}</p> +</div> +</div> +</div> + +<h2 id="See_also">See also</h2> + +<ul> + <li>参见 {{domxref("PerformanceTiming")}} 接口.</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/connectstart/index.html b/files/zh-cn/web/api/performancetiming/connectstart/index.html new file mode 100644 index 0000000000..851a9aca75 --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/connectstart/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.connectStart +slug: Web/API/PerformanceTiming/connectStart +translation_of: Web/API/PerformanceTiming/connectStart +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.connectStart</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long 型只读属性,</code>请求连接被发送到网络之时的Unix毫秒时间戳。如果传输层报告错误并且连接的建立重新开始,则把最后建立连接的开始时间作为该值。如果一个持久连接被使用,则该值与 {{domxref("PerformanceTiming.fetchStart")}} 相同。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.connectStart;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-connectstart', 'PerformanceTiming.connectStart')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.connectStart")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/domainlookupend/index.html b/files/zh-cn/web/api/performancetiming/domainlookupend/index.html new file mode 100644 index 0000000000..d996bf27e3 --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/domainlookupend/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.domainLookupEnd +slug: Web/API/PerformanceTiming/domainLookupEnd +translation_of: Web/API/PerformanceTiming/domainLookupEnd +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.domainLookupEnd</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为解析域名结束时的 Unix毫秒时间戳。如果一个持久连接被使用,或者该信息已经被本地资源或者缓存存储,则该值等同于 {{domxref("PerformanceTiming.fetchStart")}}。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.domainLookupEnd;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-domainlookupend', 'PerformanceTiming.domainLookupEnd')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.domainLookupEnd")}}</p> +</div> +</div> + +<h2 id="参加">参加</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/domainlookupstart/index.html b/files/zh-cn/web/api/performancetiming/domainlookupstart/index.html new file mode 100644 index 0000000000..ab68f765b8 --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/domainlookupstart/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.domainLookupStart +slug: Web/API/PerformanceTiming/domainLookupStart +translation_of: Web/API/PerformanceTiming/domainLookupStart +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.domainLookupStart</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为域名开始解析之时的 Unix毫秒时间戳。如果一个持久连接被使用,或者该信息已经被本地资源或者缓存存储,则该值等同于 {{domxref("PerformanceTiming.fetchStart")}}。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.domainLookupStart;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-domainlookupstart', 'PerformanceTiming.domainLookupStart')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.domainLookupStart")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/domcomplete/index.html b/files/zh-cn/web/api/performancetiming/domcomplete/index.html new file mode 100644 index 0000000000..e1a494b0be --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/domcomplete/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.domComplete +slug: Web/API/PerformanceTiming/domComplete +translation_of: Web/API/PerformanceTiming/domComplete +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.domComplete</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为主文档的解析器结束工作,{{domxref("Document.readyState")}} 变为 <code>'complete'且相当于</code> {{event("readystatechange")}} 事件被触发时的 Unix毫秒时间戳。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.domComplete;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-domcomplete', 'PerformanceTiming.domComplete')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.domComplete")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/domcontentloadedeventend/index.html b/files/zh-cn/web/api/performancetiming/domcontentloadedeventend/index.html new file mode 100644 index 0000000000..23e672757c --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/domcontentloadedeventend/index.html @@ -0,0 +1,49 @@ +--- +title: PerformanceTiming.domContentLoadedEventEnd +slug: Web/API/PerformanceTiming/domContentLoadedEventEnd +tags: + - 性能 +translation_of: Web/API/PerformanceTiming/domContentLoadedEventEnd +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="Summary">Summary</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.domContentLoadedEventEnd</code></strong> 为只读属性,返回一个无符号长整型数值(<code>unsigned long),以UNIX时间戳的形式表示一个时刻,这个时刻为所有需要尽早执行的脚本不管是否按顺序,都已经执行完毕。(译注:即DOM Ready)</code></p> + +<h2 id="Syntax">Syntax</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.domContentLoadedEventEnd;</pre> + +<h2 id="Specifications">Specifications</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-domcontentloadedeventend', 'PerformanceTiming.domContentLoadedEventEnd')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.domContentLoadedEventEnd")}}</p> +</div> +</div> + +<h2 id="See_also">See also</h2> + +<ul> + <li>所属的 {{domxref("PerformanceTiming")}} 接口</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/domcontentloadedeventstart/index.html b/files/zh-cn/web/api/performancetiming/domcontentloadedeventstart/index.html new file mode 100644 index 0000000000..b0aa0fb44d --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/domcontentloadedeventstart/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.domContentLoadedEventStart +slug: Web/API/PerformanceTiming/domContentLoadedEventStart +translation_of: Web/API/PerformanceTiming/domContentLoadedEventStart +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.domContentLoadedEventStart</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为解析器发出 {{event("DOMContentLoaded")}} 事件之前,即所有的需要被运行的脚本已经被解析之时的 Unix毫秒时间戳。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.domContentLoadedEventStart;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-domcontentloadedeventstart', 'PerformanceTiming.domContentLoadedEventStart')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.domContentLoadedEventStart")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/dominteractive/index.html b/files/zh-cn/web/api/performancetiming/dominteractive/index.html new file mode 100644 index 0000000000..843db953f9 --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/dominteractive/index.html @@ -0,0 +1,50 @@ +--- +title: PerformanceTiming.domInteractive +slug: Web/API/PerformanceTiming/domInteractive +translation_of: Web/API/PerformanceTiming/domInteractive +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.domInteractive</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为在主文档的解析器结束工作,即 {{domxref("Document.readyState")}} 改变为 <code>'interactive'</code> 并且相当于 {{event("readystatechange")}} 事件被触发之时的 Unix毫秒时间戳。</p> + +<p>这个属性被用于测量用户感受的加载网页的速度。然而,如果脚本被屏蔽发生,而不是被异步加载或者使用了自定义的 Web 字体,这里有一些警告可能会发生。在使用这个值作为网页加载用户体验的媒介时,请务必<a href="http://www.stevesouders.com/blog/2015/08/07/dominteractive-is-it-really/">检查一下你是否处于以上的情况</a>。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.domInteractive;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-dominteractive', 'PerformanceTiming.domInteractive')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.domInteractive")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> + <li>文章 "<a href="http://www.stevesouders.com/blog/2015/08/07/dominteractive-is-it-really/">domInteractive: is it? really?</a>" 解释了什么时候你可以使用这个属性作为加载网页的用户体验的代理。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/domloading/index.html b/files/zh-cn/web/api/performancetiming/domloading/index.html new file mode 100644 index 0000000000..4100e6f028 --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/domloading/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.domLoading +slug: Web/API/PerformanceTiming/domLoading +translation_of: Web/API/PerformanceTiming/domLoading +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.domLoading</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为解析器开始工作,即 {{domxref("Document.readyState")}} 改变为 <code>'loading'</code> 并且 {{event("readystatechange")}} 事件被触发之时的 Unix毫秒时间戳。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.domLoading;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-domloading', 'PerformanceTiming.domLoading')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.domLoading")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/fetchstart/index.html b/files/zh-cn/web/api/performancetiming/fetchstart/index.html new file mode 100644 index 0000000000..2523418c1f --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/fetchstart/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.fetchStart +slug: Web/API/PerformanceTiming/fetchStart +translation_of: Web/API/PerformanceTiming/fetchStart +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.fetchStart</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为浏览器已经准备好去使用HTTP请求抓取文档之时的 Unix毫秒时间戳。这一时刻在检查应用的缓存之前。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.fetchStart;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-fetchstart', 'PerformanceTiming.fetchStart')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.fetchStart")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/index.html b/files/zh-cn/web/api/performancetiming/index.html new file mode 100644 index 0000000000..859bbdbd52 --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/index.html @@ -0,0 +1,104 @@ +--- +title: PerformanceTiming +slug: Web/API/PerformanceTiming +tags: + - API + - Navi +translation_of: Web/API/PerformanceTiming +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<p><strong><code>PerformanceTiming</code></strong> 接口是为保持向后兼容性而保留的传统接口,并且提供了在加载和使用当前页面期间发生的各种事件的性能计时信息。</p> + +<p>可以通过只读属性{{domxref("Performance.timing", "window.performance.timing")}} 获得实现该接口的一个对象。</p> + +<h2 id="属性">属性</h2> + +<p><em><code>PerformanceTiming</code> 接口不包含任何继承属性。</em></p> + +<dl> + <dt>{{domxref("PerformanceTiming.navigationStart")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,表征了从同一个浏览器上下文的上一个文档卸载(unload)结束时的UNIX时间戳。如果没有上一个文档,这个值会和PerformanceTiming.fetchStart相同。</dd> + <dt>{{domxref("PerformanceTiming.unloadEventStart")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,表征了{{event("unload")}}事件抛出时的UNIX时间戳。如果没有上一个文档,or if the previous document, or one of the needed redirects, is not of the same origin, 这个值会返回0.</dd> + <dt>{{domxref("PerformanceTiming.unloadEventEnd")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,表征了{{event("unload")}}事件处理完成时的UNIX时间戳。如果没有上一个文档,or if the previous document, or one of the needed redirects, is not of the same origin, 这个值会返回0.</dd> + <dt>{{domxref("PerformanceTiming.redirectStart")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,表征了第一个HTTP重定向开始时的UNIX时间戳。如果没有重定向,或者重定向中的一个不同源,这个值会返回0.</dd> + <dt>{{domxref("PerformanceTiming.redirectEnd")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,表征了最后一个HTTP重定向完成时(也就是说是HTTP响应的最后一个比特直接被收到的时间)的UNIX时间戳。如果没有重定向,或者重定向中的一个不同源,这个值会返回0.</dd> + <dt>{{domxref("PerformanceTiming.fetchStart")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,表征了浏览器准备好使用HTTP请求来获取(fetch)文档的UNIX时间戳。这个时间点会在检查任何应用缓存之前。</dd> + <dt>{{domxref("PerformanceTiming.domainLookupStart")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,表征了域名查询开始的UNIX时间戳。如果使用了持续连接(persistent connection),或者这个信息存储到了缓存或者本地资源上,这个值将和 <code>PerformanceTiming.fetchStart一致。</code></dd> + <dt>{{domxref("PerformanceTiming.domainLookupEnd")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,表征了域名查询结束的UNIX时间戳。如果使用了持续连接(persistent connection),或者这个信息存储到了缓存或者本地资源上,这个值将和 <code>PerformanceTiming.fetchStart一致。</code></dd> + <dt>{{domxref("PerformanceTiming.connectStart")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回HTTP请求开始向服务器发送时的Unix毫秒时间戳。如果使用持久连接(persistent connection),则返回值等同于fetchStart属性的值。</dd> + <dt>{{domxref("PerformanceTiming.connectEnd")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回浏览器与服务器之间的连接建立时的Unix毫秒时间戳。如果建立的是持久连接,则返回值等同于fetchStart属性的值。连接建立指的是所有握手和认证过程全部结束。</dd> + <dt>{{domxref("PerformanceTiming.secureConnectionStart")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回浏览器与服务器开始安全链接的握手时的Unix毫秒时间戳。如果当前网页不要求安全连接,则返回0。</dd> + <dt>{{domxref("PerformanceTiming.requestStart")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回浏览器向服务器发出HTTP请求时(或开始读取本地缓存时)的Unix毫秒时间戳。</dd> + <dt>{{domxref("PerformanceTiming.responseStart")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回浏览器从服务器收到(或从本地缓存读取)第一个字节时的Unix毫秒时间戳。如果传输层在开始请求之后失败并且连接被重开,该属性将会被数制成新的请求的相对应的发起时间。</dd> + <dt>{{domxref("PerformanceTiming.responseEnd")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回浏览器从服务器收到(或从本地缓存读取,或从本地资源读取)最后一个字节时(如果在此之前HTTP连接已经关闭,则返回关闭时)的Unix毫秒时间戳。</dd> + <dt>{{domxref("PerformanceTiming.domLoading")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回当前网页DOM结构开始解析时(即{{domxref("Document.readyState")}}属性变为“loading”、相应的 {{event("readystatechange")}}事件触发时)的Unix毫秒时间戳。</dd> + <dt>{{domxref("PerformanceTiming.domInteractive")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回当前网页DOM结构结束解析、开始加载内嵌资源时(即{{domxref("Document.readyState")}}属性变为“interactive”、相应的{{event("readystatechange")}}事件触发时)的Unix毫秒时间戳。</dd> + <dt>{{domxref("PerformanceTiming.domContentLoadedEventStart")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回当解析器发送{{event("DOMContentLoaded")}} 事件,即所有需要被执行的脚本已经被解析时的Unix毫秒时间戳。</dd> + <dt>{{domxref("PerformanceTiming.domContentLoadedEventEnd")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回当所有需要立即执行的脚本已经被执行(不论执行顺序)时的Unix毫秒时间戳。</dd> + <dt>{{domxref("PerformanceTiming.domComplete")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回当前文档解析完成,即{{domxref("Document.readyState")}} 变为 <code>'complete'且相对应的</code>{{event("readystatechange")}} 被触发时的Unix毫秒时间戳。</dd> + <dt>{{domxref("PerformanceTiming.loadEventStart")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回该文档下,{{event("load")}}事件被发送时的Unix毫秒时间戳。如果这个事件还未被发送,它的值将会是0。</dd> + <dt>{{domxref("PerformanceTiming.loadEventEnd")}} {{readonlyInline}}</dt> + <dd>是一个无符号long long 型的毫秒数,返回当{{event("load")}}事件结束,即加载事件完成时的Unix毫秒时间戳。如果这个事件还未被发送,或者尚未完成,它的值将会是0.</dd> +</dl> + +<h2 id="方法">方法</h2> + +<p><em><em><code>Performance</code> </em></em>接口不包含任何方法。</p> + +<dl> + <dt>{{domxref("PerformanceTiming.toJSON()")}} {{non-Standard_Inline}}</dt> + <dd>是一个JSON格式化工具,返回一个 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON" title="/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON">JSON 对象</a>,代表具体的 <code>PerformanceTiming</code> 对象。</dd> +</dl> + +<h2 id="规范">规范</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">规范名称</th> + <th scope="col">规范状态</th> + <th scope="col">说明</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#sec-navigation-timing-interface', 'PerformanceTiming')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming")}}</p> +</div> +</div> + +<h2 id="相关链接">相关链接</h2> + +<ul> + <li>{{domxref("Performance.timing")}} 属性会返回这样一个对象.</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/loadeventend/index.html b/files/zh-cn/web/api/performancetiming/loadeventend/index.html new file mode 100644 index 0000000000..9d90f6241c --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/loadeventend/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.loadEventEnd +slug: Web/API/PerformanceTiming/loadEventEnd +translation_of: Web/API/PerformanceTiming/loadEventEnd +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.loadEventEnd</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为 {{event("load")}} 事件处理程序被终止,加载事件已经完成之时的 Unix毫秒时间戳。如果这个事件没有被触发,或者没能完成,则该值将会返回 <code>0。</code></p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.loadEventEnd;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-loadedeventend', 'PerformanceTiming.loadEventEnd')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.loadEventEnd")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/loadeventstart/index.html b/files/zh-cn/web/api/performancetiming/loadeventstart/index.html new file mode 100644 index 0000000000..ac4c1e723f --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/loadeventstart/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.loadEventStart +slug: Web/API/PerformanceTiming/loadEventStart +translation_of: Web/API/PerformanceTiming/loadEventStart +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.loadEventStart</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为 {{event("load")}} 事件被现在的文档触发之时的 Unix时间戳。如果这个事件没有被触发,则他返回 <code>0。</code></p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.loadEventStart;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-loadeventstart', 'PerformanceTiming.loadEventStart')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.loadEventStart")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/navigationstart/index.html b/files/zh-cn/web/api/performancetiming/navigationstart/index.html new file mode 100644 index 0000000000..512b95db03 --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/navigationstart/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.navigationStart +slug: Web/API/PerformanceTiming/navigationStart +translation_of: Web/API/PerformanceTiming/navigationStart +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.navigationStart</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为紧接着在相同的浏览环境下卸载前一个文档结束之时的 Unix毫秒时间戳。如果没有上一个文档,则它的值相当于 {{domxref("PerformanceTiming.fetchStart")}}。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.navigationStart;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-navigationstart', 'PerformanceTiming.navigationStart')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.navigationStart")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/redirectend/index.html b/files/zh-cn/web/api/performancetiming/redirectend/index.html new file mode 100644 index 0000000000..0f1bf31b0a --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/redirectend/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.redirectEnd +slug: Web/API/PerformanceTiming/redirectEnd +translation_of: Web/API/PerformanceTiming/redirectEnd +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.redirectEnd</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为最后一次的HTTP重定向被完成且HTTP响应的最后一个字节被接收之时的 Unix毫秒时间戳。如果没有发生重定向,或者其中一个重定向不同源,则该值返回 <code>0。</code></p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.redirectEnd;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-redirectend', 'PerformanceTiming.redirectEnd')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.redirectEnd")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("Performance")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/redirectstart/index.html b/files/zh-cn/web/api/performancetiming/redirectstart/index.html new file mode 100644 index 0000000000..27953d67bc --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/redirectstart/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.redirectStart +slug: Web/API/PerformanceTiming/redirectStart +translation_of: Web/API/PerformanceTiming/redirectStart +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.redirectStart</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为第一个HTTP的重定向开始的时刻的 Unix毫秒时间戳。如果重定向没有发生,或者其中一个重定向非同源,则该值返回 <code>0。</code></p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.redirectStart;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-redirectstart', 'PerformanceTiming.redirectStart')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.redirectStart")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/requeststart/index.html b/files/zh-cn/web/api/performancetiming/requeststart/index.html new file mode 100644 index 0000000000..fdaab3a8df --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/requeststart/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.requestStart +slug: Web/API/PerformanceTiming/requestStart +translation_of: Web/API/PerformanceTiming/requestStart +--- +<p>{{ APIRef("PerformanceTiming") }}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.requestStart</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为浏览器发送从服务器或者缓存获取实际文档的请求之时的 Unix毫秒时间戳。如果传输层在请求开始之后发生错误并且连接被重新打开,则该属性将会被设定为新的请求的相应的值 。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.requestStart;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-requeststart', 'PerformanceTiming.requestStart')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.requestStart")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/responseend/index.html b/files/zh-cn/web/api/performancetiming/responseend/index.html new file mode 100644 index 0000000000..5f1520338c --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/responseend/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.responseEnd +slug: Web/API/PerformanceTiming/responseEnd +translation_of: Web/API/PerformanceTiming/responseEnd +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.responseEnd</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为浏览器从服务器、缓存或者本地资源接收响应的最后一个字节或者连接被关闭之时的 Unix毫秒时间戳。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.responseEnd;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-responseEnd', 'PerformanceTiming.responseEnd')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.responseEnd")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/responsestart/index.html b/files/zh-cn/web/api/performancetiming/responsestart/index.html new file mode 100644 index 0000000000..f2716d2e55 --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/responsestart/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.responseStart +slug: Web/API/PerformanceTiming/responseStart +translation_of: Web/API/PerformanceTiming/responseStart +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.responseStart</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为浏览器从服务器、缓存或者本地资源接收到响应的第一个字节之时的 Unix毫秒时间戳。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.responseStart;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-responsestart', 'PerformanceTiming.responseStart')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.responseStart")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/secureconnectionstart/index.html b/files/zh-cn/web/api/performancetiming/secureconnectionstart/index.html new file mode 100644 index 0000000000..9b45649191 --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/secureconnectionstart/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.secureConnectionStart +slug: Web/API/PerformanceTiming/secureConnectionStart +translation_of: Web/API/PerformanceTiming/secureConnectionStart +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.secureConnectionStart</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为安全连接握手开始的时刻的 Unix毫秒时间戳。如果只要你过的连接没有被请求,则它返回 0。</p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.secureConnectionStart;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-secureconnectionstart', 'PerformanceTiming.secureConnectionStart')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.secureConnectionStart")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/unloadeventend/index.html b/files/zh-cn/web/api/performancetiming/unloadeventend/index.html new file mode 100644 index 0000000000..7b0f50ff94 --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/unloadeventend/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.unloadEventEnd +slug: Web/API/PerformanceTiming/unloadEventEnd +translation_of: Web/API/PerformanceTiming/unloadEventEnd +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.unloadEventEnd</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为{{event("unload")}} 事件处理程序结束之时的 Unix毫秒时间戳。如果没有上一个的文档,或者上一个文档或需要被跳转的页面的其中之一不同源,则该值返回 <code>0。</code></p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.unloadEventEnd;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-unloadeventend', 'PerformanceTiming.unloadEventEnd')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.unloadEventEnd")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> diff --git a/files/zh-cn/web/api/performancetiming/unloadeventstart/index.html b/files/zh-cn/web/api/performancetiming/unloadeventstart/index.html new file mode 100644 index 0000000000..5c1b20ccd0 --- /dev/null +++ b/files/zh-cn/web/api/performancetiming/unloadeventstart/index.html @@ -0,0 +1,47 @@ +--- +title: PerformanceTiming.unloadEventStart +slug: Web/API/PerformanceTiming/unloadEventStart +translation_of: Web/API/PerformanceTiming/unloadEventStart +--- +<p>{{APIRef("Navigation Timing")}}</p> + +<h2 id="概要">概要</h2> + +<p><code><strong>PerformanceTiming</strong></code><strong><code>.unloadEventStart</code></strong> 是一个返回代表一个时刻的 <code>unsigned long long</code> 型只读属性,为 {{event("unload")}} 事件被触发之时的 Unix毫秒时间戳。如果没有上一个文档,或者上一个文档或需要重定向的页面之一不同源,则该值返回 <code>0。</code></p> + +<h2 id="语法">语法</h2> + +<pre class="syntaxbox"><em>time</em> = <em>performanceTiming</em>.unloadEventStart;</pre> + +<h2 id="标准">标准</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + <tr> + <td>{{SpecName('Navigation Timing', '#dom-performancetiming-unloadeventstart', 'PerformanceTiming.unloadEventStart')}}</td> + <td>{{Spec2('Navigation Timing')}}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="浏览器兼容性">浏览器兼容性</h2> + +<div> +<div> + + +<p>{{Compat("api.PerformanceTiming.unloadEventStart")}}</p> +</div> +</div> + +<h2 id="参见">参见</h2> + +<ul> + <li>它属于 {{domxref("PerformanceTiming")}} 接口。</li> +</ul> |