From 9a06d5b4a3874caa094bff06895c892914eaea93 Mon Sep 17 00:00:00 2001 From: MDN Date: Thu, 30 Sep 2021 00:53:33 +0000 Subject: [CRON] sync translated content --- files/zh-cn/_redirects.txt | 7 +++- files/zh-cn/_wikihistory.json | 44 +++++++++++----------- .../index.html | 31 +++++++++++++++ files/zh-cn/web/api/animation/starttime/index.html | 22 +++++++++++ files/zh-cn/web/api/file/size/index.html | 30 --------------- .../zh-cn/web/api/performance_property/index.html | 36 ++++++++++++++++++ .../api/window/mozanimationstarttime/index.html | 21 ----------- files/zh-cn/web/api/window/performance/index.html | 35 ----------------- 8 files changed, 116 insertions(+), 110 deletions(-) create mode 100644 files/zh-cn/conflicting/web/api/blob/size_3e7c15d3e7851172bb4623d0237d8c9e/index.html create mode 100644 files/zh-cn/web/api/animation/starttime/index.html delete mode 100644 files/zh-cn/web/api/file/size/index.html create mode 100644 files/zh-cn/web/api/performance_property/index.html delete mode 100644 files/zh-cn/web/api/window/mozanimationstarttime/index.html delete mode 100644 files/zh-cn/web/api/window/performance/index.html (limited to 'files/zh-cn') diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt index 90ff7ef11f..1cf17f7a98 100644 --- a/files/zh-cn/_redirects.txt +++ b/files/zh-cn/_redirects.txt @@ -446,7 +446,7 @@ /zh-CN/docs/DOM/window.location /zh-CN/docs/Web/API/Window/location /zh-CN/docs/DOM/window.minimize /zh-CN/docs/conflicting/Web/API/Window /zh-CN/docs/DOM/window.moveTo /zh-CN/docs/Web/API/Window/moveTo -/zh-CN/docs/DOM/window.mozAnimationStartTime /zh-CN/docs/Web/API/Window/mozAnimationStartTIme +/zh-CN/docs/DOM/window.mozAnimationStartTime /zh-CN/docs/Web/API/Animation/startTime /zh-CN/docs/DOM/window.navigator /zh-CN/docs/Web/API/Window/navigator /zh-CN/docs/DOM/window.navigator.battery /zh-CN/docs/Web/API/Navigator/battery /zh-CN/docs/DOM/window.navigator.buildID /zh-CN/docs/Web/API/Navigator/buildID @@ -1327,6 +1327,7 @@ /zh-CN/docs/Web/API/File.name /zh-CN/docs/Web/API/File/name /zh-CN/docs/Web/API/File/fileName /zh-CN/docs/conflicting/Web/API/File/name /zh-CN/docs/Web/API/File/fileSize /zh-CN/docs/conflicting/Web/API/Blob/size +/zh-CN/docs/Web/API/File/size /zh-CN/docs/conflicting/Web/API/Blob/size_3e7c15d3e7851172bb4623d0237d8c9e /zh-CN/docs/Web/API/FileReader/中止事件(abort) /zh-CN/docs/Web/API/FileReader/abort_event /zh-CN/docs/Web/API/FormData/删除 /zh-CN/docs/Web/API/FormData/delete /zh-CN/docs/Web/API/Fullscreen_API/指南 /zh-CN/docs/Web/API/Fullscreen_API/Guide @@ -1528,7 +1529,7 @@ /zh-CN/docs/Web/API/Window.minimize /zh-CN/docs/conflicting/Web/API/Window /zh-CN/docs/Web/API/Window.moveBy /zh-CN/docs/Web/API/Window/moveBy /zh-CN/docs/Web/API/Window.moveTo /zh-CN/docs/Web/API/Window/moveTo -/zh-CN/docs/Web/API/Window.mozAnimationStartTime /zh-CN/docs/Web/API/Window/mozAnimationStartTIme +/zh-CN/docs/Web/API/Window.mozAnimationStartTime /zh-CN/docs/Web/API/Animation/startTime /zh-CN/docs/Web/API/Window.name /zh-CN/docs/Web/API/Window/name /zh-CN/docs/Web/API/Window.navigator /zh-CN/docs/Web/API/Window/navigator /zh-CN/docs/Web/API/Window.onbeforeunload /zh-CN/docs/Web/API/WindowEventHandlers/onbeforeunload @@ -1562,11 +1563,13 @@ /zh-CN/docs/Web/API/Window/caches /zh-CN/docs/Web/API/caches /zh-CN/docs/Web/API/Window/clearInterval /zh-CN/docs/Web/API/clearInterval /zh-CN/docs/Web/API/Window/minimize /zh-CN/docs/conflicting/Web/API/Window +/zh-CN/docs/Web/API/Window/mozAnimationStartTIme /zh-CN/docs/Web/API/Animation/startTime /zh-CN/docs/Web/API/Window/onbeforeunload /zh-CN/docs/Web/API/WindowEventHandlers/onbeforeunload /zh-CN/docs/Web/API/Window/onhashchange /zh-CN/docs/Web/API/WindowEventHandlers/onhashchange /zh-CN/docs/Web/API/Window/onpopstate /zh-CN/docs/Web/API/WindowEventHandlers/onpopstate /zh-CN/docs/Web/API/Window/onresize /zh-CN/docs/Web/API/GlobalEventHandlers/onresize /zh-CN/docs/Web/API/Window/onunload /zh-CN/docs/Web/API/WindowEventHandlers/onunload +/zh-CN/docs/Web/API/Window/performance /zh-CN/docs/Web/API/performance_property /zh-CN/docs/Web/API/Window/setInterval /zh-CN/docs/Web/API/setInterval /zh-CN/docs/Web/API/Window/setTimeout /zh-CN/docs/Web/API/setTimeout /zh-CN/docs/Web/API/WindowBase64 /zh-CN/docs/Web/API/WindowOrWorkerGlobalScope#方法 diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json index d0bbfa5ee4..22633218c1 100644 --- a/files/zh-cn/_wikihistory.json +++ b/files/zh-cn/_wikihistory.json @@ -7575,6 +7575,14 @@ "Geolage" ] }, + "Web/API/Animation/startTime": { + "modified": "2019-03-23T23:39:18.582Z", + "contributors": [ + "teoli", + "khalid32", + "ziyunfei" + ] + }, "Web/API/AnimationEvent": { "modified": "2019-03-23T23:02:22.417Z", "contributors": [ @@ -13400,12 +13408,6 @@ "ziyunfei" ] }, - "Web/API/File/size": { - "modified": "2019-03-18T21:27:15.606Z", - "contributors": [ - "levo2165" - ] - }, "Web/API/File/type": { "modified": "2019-03-23T22:09:04.649Z", "contributors": [ @@ -23191,14 +23193,6 @@ "ziyunfei" ] }, - "Web/API/Window/mozAnimationStartTIme": { - "modified": "2019-03-23T23:39:18.582Z", - "contributors": [ - "teoli", - "khalid32", - "ziyunfei" - ] - }, "Web/API/Window/mozInnerScreenX": { "modified": "2019-03-23T22:07:48.096Z", "contributors": [ @@ -23417,14 +23411,6 @@ "ziyunfei" ] }, - "Web/API/Window/performance": { - "modified": "2019-08-22T06:18:57.970Z", - "contributors": [ - "vebuqi", - "xgqfrms-GitHub", - "AceMood" - ] - }, "Web/API/Window/personalbar": { "modified": "2019-03-18T21:37:01.272Z", "contributors": [ @@ -24708,6 +24694,14 @@ "xgqfrms-GitHub" ] }, + "Web/API/performance_property": { + "modified": "2019-08-22T06:18:57.970Z", + "contributors": [ + "vebuqi", + "xgqfrms-GitHub", + "AceMood" + ] + }, "Web/API/queueMicrotask": { "modified": "2020-10-15T22:23:11.878Z", "contributors": [ @@ -46939,6 +46933,12 @@ "ziyunfei" ] }, + "conflicting/Web/API/Blob/size_3e7c15d3e7851172bb4623d0237d8c9e": { + "modified": "2019-03-18T21:27:15.606Z", + "contributors": [ + "levo2165" + ] + }, "conflicting/Web/API/Canvas_API/Tutorial": { "modified": "2019-03-23T23:20:14.159Z", "contributors": [ diff --git a/files/zh-cn/conflicting/web/api/blob/size_3e7c15d3e7851172bb4623d0237d8c9e/index.html b/files/zh-cn/conflicting/web/api/blob/size_3e7c15d3e7851172bb4623d0237d8c9e/index.html new file mode 100644 index 0000000000..9468a794ba --- /dev/null +++ b/files/zh-cn/conflicting/web/api/blob/size_3e7c15d3e7851172bb4623d0237d8c9e/index.html @@ -0,0 +1,31 @@ +--- +title: File.size +slug: conflicting/Web/API/Blob/size_3e7c15d3e7851172bb4623d0237d8c9e +translation_of: Web/API/File/size +original_slug: Web/API/File/size +--- +

{{APIRef("File API") }}

+ +

概述

+ +

以字节为单位返回文件的大小。

+ +

语法

+ +
var size = instanceOfFile.size
+ +

+ +

一个数

+ +

规范

+ +

不属于任何规范。

+ +

另请参见

+ + + +

 

diff --git a/files/zh-cn/web/api/animation/starttime/index.html b/files/zh-cn/web/api/animation/starttime/index.html new file mode 100644 index 0000000000..e298c23a8a --- /dev/null +++ b/files/zh-cn/web/api/animation/starttime/index.html @@ -0,0 +1,22 @@ +--- +title: window.mozAnimationStartTime +slug: Web/API/Animation/startTime +translation_of: Web/API/Window/mozAnimationStartTime +original_slug: Web/API/Window/mozAnimationStartTIme +--- +

{{ ApiRef() }}

+

{{ gecko_minversion_header("2.0") }}{{ non-standard_header() }}

+

概述

+

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, Date.now(), 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.

+

This also allows JavaScript-based animations to remain synchronized with CSS transitions and SMIL animations triggered during the same refresh interval.

+

语法

+
time = window.mozAnimationStartTime;
+
+

规范

+

不属于任何规范.

+

相关链接

+ +

{{ languages( { "en":"en/DOM/window.mozAnimationStartTime" } ) }}

diff --git a/files/zh-cn/web/api/file/size/index.html b/files/zh-cn/web/api/file/size/index.html deleted file mode 100644 index 5ab90e8018..0000000000 --- a/files/zh-cn/web/api/file/size/index.html +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: File.size -slug: Web/API/File/size -translation_of: Web/API/File/size ---- -

{{APIRef("File API") }}

- -

概述

- -

以字节为单位返回文件的大小。

- -

语法

- -
var size = instanceOfFile.size
- -

- -

一个数

- -

规范

- -

不属于任何规范。

- -

另请参见

- - - -

 

diff --git a/files/zh-cn/web/api/performance_property/index.html b/files/zh-cn/web/api/performance_property/index.html new file mode 100644 index 0000000000..7771c6cb0b --- /dev/null +++ b/files/zh-cn/web/api/performance_property/index.html @@ -0,0 +1,36 @@ +--- +title: Window.performance +slug: Web/API/performance_property +tags: + - Window.performance + - analytics + - 前端代码埋点 +translation_of: Web/API/Window/performance +original_slug: Web/API/Window/performance +--- +
{{APIREf}}
+ +
Web Performance API允许网页访问某些函数来测量网页和Web应用程序的性能,包括 Navigation Timing API和高分辨率时间数据。
+ +

方法

+ +
+
{{domxref("Performance.mark()", "performance.mark()")}}
+
通过一个给定的名称,将该名称(作为键)和对应的{{domxref("DOMHighResTimeStamp")}}(作为值)保存在一个哈希结构里。该键值对表示了从某一时刻(译者注:某一时刻通常是 navigationStart 事件发生时刻)到记录时刻间隔的毫秒数。(译者注:该方法一般用来多次记录时间,用于求得各记录间的时间差)
+
+ +
+
{{domxref("Performance.now()", "performance.now()")}}
+
该方法返回一个{{domxref("DOMHighResTimeStamp")}}对象,该对象表示从某一时刻(译者注:某一时刻通常是 navigationStart 事件发生时刻)到调用该方法时刻的毫秒数。
+
+ +

属性

+ +
+
{{domxref("Performance.timing", "performance.timing")}}
+
是一个{{domxref("PerformanceTiming")}} 对象,包含延迟相关的性能信息。
+
{{domxref("Performance.navigation", "performance.navigation")}}
+
是一个 {{domxref("PerformanceNavigation")}} 对象,该对象表示在当前给定浏览上下文中网页导航的类型(译者注:TYPE_BACK_FORWARD,TYPE_NAVIGATE, TYPE_RELOAD,TYPE_RESERVED)以及次数。
+
performance.memory
+
在Chrome中添加的一个非标准扩展。
+
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 ---- -

{{ ApiRef() }}

-

{{ gecko_minversion_header("2.0") }}{{ non-standard_header() }}

-

概述

-

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, Date.now(), 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.

-

This also allows JavaScript-based animations to remain synchronized with CSS transitions and SMIL animations triggered during the same refresh interval.

-

语法

-
time = window.mozAnimationStartTime;
-
-

规范

-

不属于任何规范.

-

相关链接

- -

{{ languages( { "en":"en/DOM/window.mozAnimationStartTime" } ) }}

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 ---- -
{{APIREf}}
- -
Web Performance API允许网页访问某些函数来测量网页和Web应用程序的性能,包括 Navigation Timing API和高分辨率时间数据。
- -

方法

- -
-
{{domxref("Performance.mark()", "performance.mark()")}}
-
通过一个给定的名称,将该名称(作为键)和对应的{{domxref("DOMHighResTimeStamp")}}(作为值)保存在一个哈希结构里。该键值对表示了从某一时刻(译者注:某一时刻通常是 navigationStart 事件发生时刻)到记录时刻间隔的毫秒数。(译者注:该方法一般用来多次记录时间,用于求得各记录间的时间差)
-
- -
-
{{domxref("Performance.now()", "performance.now()")}}
-
该方法返回一个{{domxref("DOMHighResTimeStamp")}}对象,该对象表示从某一时刻(译者注:某一时刻通常是 navigationStart 事件发生时刻)到调用该方法时刻的毫秒数。
-
- -

属性

- -
-
{{domxref("Performance.timing", "performance.timing")}}
-
是一个{{domxref("PerformanceTiming")}} 对象,包含延迟相关的性能信息。
-
{{domxref("Performance.navigation", "performance.navigation")}}
-
是一个 {{domxref("PerformanceNavigation")}} 对象,该对象表示在当前给定浏览上下文中网页导航的类型(译者注:TYPE_BACK_FORWARD,TYPE_NAVIGATE, TYPE_RELOAD,TYPE_RESERVED)以及次数。
-
performance.memory
-
在Chrome中添加的一个非标准扩展。
-
-- cgit v1.2.3-54-g00ecf