diff options
author | MDN <actions@users.noreply.github.com> | 2021-09-30 00:53:33 +0000 |
---|---|---|
committer | MDN <actions@users.noreply.github.com> | 2021-09-30 00:53:33 +0000 |
commit | 9a06d5b4a3874caa094bff06895c892914eaea93 (patch) | |
tree | 1c9549ade620e59f4af4c5ee6b6ac7640bf4fcda /files/zh-cn/web/api/window | |
parent | 75e5dcce1e3c6558a3a2d3def5c08669404587c4 (diff) | |
download | translated-content-9a06d5b4a3874caa094bff06895c892914eaea93.tar.gz translated-content-9a06d5b4a3874caa094bff06895c892914eaea93.tar.bz2 translated-content-9a06d5b4a3874caa094bff06895c892914eaea93.zip |
[CRON] sync translated content
Diffstat (limited to 'files/zh-cn/web/api/window')
-rw-r--r-- | files/zh-cn/web/api/window/mozanimationstarttime/index.html | 21 | ||||
-rw-r--r-- | files/zh-cn/web/api/window/performance/index.html | 35 |
2 files changed, 0 insertions, 56 deletions
diff --git a/files/zh-cn/web/api/window/mozanimationstarttime/index.html b/files/zh-cn/web/api/window/mozanimationstarttime/index.html deleted file mode 100644 index 41666637e4..0000000000 --- a/files/zh-cn/web/api/window/mozanimationstarttime/index.html +++ /dev/null @@ -1,21 +0,0 @@ ---- -title: window.mozAnimationStartTime -slug: Web/API/Window/mozAnimationStartTIme -translation_of: Web/API/Window/mozAnimationStartTime ---- -<p>{{ ApiRef() }}</p> -<p>{{ gecko_minversion_header("2.0") }}{{ non-standard_header() }}</p> -<h3 id="Summary" name="Summary">概述</h3> -<p>Returns the time, in milliseconds since the epoch, at which animations started now should be considered to have started. This value should be used instead of, for example, <code><a href="/zh-cn/JavaScript/Reference/Global_Objects/Date/now" title="zh-cn/JavaScript/Reference/Global Objects/Date/now">Date.now()</a></code>, because this value will be the same for all animations started in this window during this refresh interval, allowing them to remain in sync with one another.</p> -<p>This also allows JavaScript-based animations to remain synchronized with CSS transitions and SMIL animations triggered during the same refresh interval.</p> -<h3 id="Syntax" name="Syntax">语法</h3> -<pre class="eval"><em>time</em> = window.mozAnimationStartTime; -</pre> -<h3 id="Specification" name="Specification">规范</h3> -<p>不属于任何规范.</p> -<h3 id="相关链接">相关链接</h3> -<ul> - <li>{{ domxref("window.requestAnimationFrame()") }}</li> - <li>{{ domxref("window.onmozbeforepaint") }}</li> -</ul> -<p>{{ languages( { "en":"en/DOM/window.mozAnimationStartTime" } ) }}</p> diff --git a/files/zh-cn/web/api/window/performance/index.html b/files/zh-cn/web/api/window/performance/index.html deleted file mode 100644 index 926f4b6b40..0000000000 --- a/files/zh-cn/web/api/window/performance/index.html +++ /dev/null @@ -1,35 +0,0 @@ ---- -title: Window.performance -slug: Web/API/Window/performance -tags: - - Window.performance - - analytics - - 前端代码埋点 -translation_of: Web/API/Window/performance ---- -<div>{{APIREf}}</div> - -<div>Web Performance API允许网页访问某些函数来测量网页和Web应用程序的性能,包括 <a href="/en-US/docs/Navigation_timing">Navigation Timing</a> API和高分辨率时间数据。</div> - -<h2 id="Methods" name="Methods">方法</h2> - -<dl> - <dt>{{domxref("Performance.mark()", "performance.mark()")}}</dt> - <dd>通过一个给定的名称,将该名称(作为键)和对应的{{domxref("DOMHighResTimeStamp")}}(作为值)保存在一个哈希结构里。该键值对表示了从某一时刻(译者注:某一时刻通常是 navigationStart 事件发生时刻)到记录时刻间隔的毫秒数。(译者注:该方法一般用来多次记录时间,用于求得各记录间的时间差)</dd> -</dl> - -<dl> - <dt>{{domxref("Performance.now()", "performance.now()")}}</dt> - <dd>该方法返回一个{{domxref("DOMHighResTimeStamp")}}对象,该对象表示从某一时刻(译者注:某一时刻通常是 navigationStart 事件发生时刻)到调用该方法时刻的毫秒数。</dd> -</dl> - -<h2 id="Properties" name="Properties">属性</h2> - -<dl> - <dt>{{domxref("Performance.timing", "performance.timing")}}</dt> - <dd>是一个{{domxref("PerformanceTiming")}} 对象,包含延迟相关的性能信息。</dd> - <dt>{{domxref("Performance.navigation", "performance.navigation")}}</dt> - <dd>是一个 {{domxref("PerformanceNavigation")}} 对象,该对象表示在当前给定浏览上下文中网页导航的类型(译者注:TYPE_BACK_FORWARD,TYPE_NAVIGATE, TYPE_RELOAD,TYPE_RESERVED)以及次数。</dd> - <dt><a href="https://docs.webplatform.org/apis/timing/properties/memory">performance.memory</a></dt> - <dd>在Chrome中添加的一个非标准扩展。</dd> -</dl> |