From 6e9fe98036090a37cc6247b873845505e5b512fb Mon Sep 17 00:00:00 2001 From: Tanner Dolby Date: Tue, 22 Feb 2022 01:49:36 -0800 Subject: Removes empty
or

elements from pages (#3093) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Removes all empty paragraph elements * Removes all empty div elements * Preserve empty div in code snippet * Preserve empty elements inside code snippets * Remove fr files which were converted into markdown * Web/CSS/transform-function/scaleX()/index.html The file is already renamed to index.md。 * remove not needed file * Resolve remaining conflict Co-authored-by: julieng Co-authored-by: Masahiro FUJIMOTO --- files/zh-cn/web/api/angle_instanced_arrays/index.html | 4 ++-- files/zh-cn/web/api/audiobuffer/index.html | 2 +- files/zh-cn/web/api/audiocontext/index.html | 2 +- files/zh-cn/web/api/console/index.html | 2 +- files/zh-cn/web/api/console/timelog/index.html | 2 +- files/zh-cn/web/api/datatransfer/setdragimage/index.html | 2 +- files/zh-cn/web/api/document/adoptnode/index.html | 4 ++-- files/zh-cn/web/api/document/cookie/index.html | 2 +- files/zh-cn/web/api/document/querycommandenabled/index.html | 2 +- files/zh-cn/web/api/element/append/index.html | 4 ++-- files/zh-cn/web/api/element/keydown_event/index.html | 2 +- files/zh-cn/web/api/element/scrollwidth/index.html | 2 +- files/zh-cn/web/api/eventtarget/addeventlistener/index.html | 2 +- files/zh-cn/web/api/globaleventhandlers/onerror/index.html | 2 +- files/zh-cn/web/api/globaleventhandlers/onformdata/index.html | 2 +- files/zh-cn/web/api/hashchangeevent/newurl/index.html | 2 +- files/zh-cn/web/api/hashchangeevent/oldurl/index.html | 2 +- files/zh-cn/web/api/history/scrollrestoration/index.html | 2 +- .../zh-cn/web/api/htmlcanvaselement/webglcontextlost_event/index.html | 2 +- files/zh-cn/web/api/htmlmediaelement/index.html | 2 +- files/zh-cn/web/api/htmlmediaelement/pause_event/index.html | 2 +- files/zh-cn/web/api/htmlparagraphelement/index.html | 2 +- files/zh-cn/web/api/htmlselectelement/selectedindex/index.html | 2 +- files/zh-cn/web/api/htmlslotelement/index.html | 2 +- files/zh-cn/web/api/idbkeyrange/lowerbound/index.html | 4 ++-- files/zh-cn/web/api/index.html | 4 ++-- files/zh-cn/web/api/mouseevent/buttons/index.html | 2 +- files/zh-cn/web/api/navigator/canshare/index.html | 2 +- files/zh-cn/web/api/node/firstchild/index.html | 4 ++-- files/zh-cn/web/api/notification/index.html | 2 +- files/zh-cn/web/api/performance/getentriesbyname/index.html | 2 +- files/zh-cn/web/api/performanceobserver/index.html | 2 +- files/zh-cn/web/api/performanceresourcetiming/index.html | 4 ++-- files/zh-cn/web/api/queuemicrotask/index.html | 2 +- files/zh-cn/web/api/request/clone/index.html | 2 +- files/zh-cn/web/api/request/index.html | 2 +- files/zh-cn/web/api/response/response/index.html | 2 +- files/zh-cn/web/api/rtcpeerconnection/createoffer/index.html | 2 +- files/zh-cn/web/api/sharedworker/index.html | 2 +- files/zh-cn/web/api/touch_events/index.html | 4 ++-- files/zh-cn/web/api/url/port/index.html | 2 +- files/zh-cn/web/api/urlsearchparams/foreach/index.html | 2 +- files/zh-cn/web/api/window/getselection/index.html | 2 +- files/zh-cn/web/api/windoweventhandlers/onbeforeprint/index.html | 2 +- files/zh-cn/web/api/worker/message_event/index.html | 4 ++-- files/zh-cn/web/api/worker/worker/index.html | 2 +- files/zh-cn/web/api/xmlhttprequest/abort_event/index.html | 4 ++-- files/zh-cn/web/api/xmlhttprequest/statustext/index.html | 2 +- 48 files changed, 58 insertions(+), 58 deletions(-) (limited to 'files/zh-cn/web/api') diff --git a/files/zh-cn/web/api/angle_instanced_arrays/index.html b/files/zh-cn/web/api/angle_instanced_arrays/index.html index eb904b0250..1469a96669 100644 --- a/files/zh-cn/web/api/angle_instanced_arrays/index.html +++ b/files/zh-cn/web/api/angle_instanced_arrays/index.html @@ -7,11 +7,11 @@ translation_of: Web/API/ANGLE_instanced_arrays

ANGLE_instanced_arrays属于 WebGL API 的一个扩展API,它允许多次绘制相同的对象或相似对象组,前提是它们共享相同的顶点数据、基本图形的个数和类型。
-
+
WebGL的扩展都能使用{{domxref("WebGLRenderingContext.getExtension()")}} 这个方法。更多详细信息,请参考 WebGL tutorial(WebGL使用教程)里的Using Extensions (使用扩展)
-
+

实用性: 这个扩展仅仅能使用在 {{domxref("WebGLRenderingContext", "WebGL1", "", 1)}} 上下文中。在 {{domxref("WebGL2RenderingContext", "WebGL2", "", 1)}},默认情况下这个扩展的在WebGL2的上下文中起作用,它的常量以及方法使用过程中没有“ANGEL”后缀。

diff --git a/files/zh-cn/web/api/audiobuffer/index.html b/files/zh-cn/web/api/audiobuffer/index.html index eee4c06464..e1e0bacf0b 100644 --- a/files/zh-cn/web/api/audiobuffer/index.html +++ b/files/zh-cn/web/api/audiobuffer/index.html @@ -98,7 +98,7 @@ button.onclick = function() {

{{Compat("api.AudioBuffer")}}

-
+

可查看

diff --git a/files/zh-cn/web/api/audiocontext/index.html b/files/zh-cn/web/api/audiocontext/index.html index eae53ceaa1..cd7e2ca4c2 100644 --- a/files/zh-cn/web/api/audiocontext/index.html +++ b/files/zh-cn/web/api/audiocontext/index.html @@ -93,7 +93,7 @@ var finish = audioCtx.destination;

{{Compat("api.AudioContext")}}

-
+

相关链接

diff --git a/files/zh-cn/web/api/console/index.html b/files/zh-cn/web/api/console/index.html index a5b296b310..053d2784c0 100644 --- a/files/zh-cn/web/api/console/index.html +++ b/files/zh-cn/web/api/console/index.html @@ -164,7 +164,7 @@ console.info("My first car was a", car, ". The object is:", someObject);
console.log("This is %cMy stylish message", "color: yellow; font-style: italic; background-color: blue;padding: 2px");
-
+
指令前的文本不会受到影响,但指令后的文本将会使用参数中声明的 CSS 样式。
diff --git a/files/zh-cn/web/api/console/timelog/index.html b/files/zh-cn/web/api/console/timelog/index.html index 9dc87c6071..3c8bbf2dfa 100644 --- a/files/zh-cn/web/api/console/timelog/index.html +++ b/files/zh-cn/web/api/console/timelog/index.html @@ -15,7 +15,7 @@ translation_of: Web/API/Console/timeLog
在控制台输出计时器的值,该计时器必须已经通过 {{domxref("console.time()")}} 启动。
-
+

参阅文档中的 Timers 部分获取详细说明和示例。 

diff --git a/files/zh-cn/web/api/datatransfer/setdragimage/index.html b/files/zh-cn/web/api/datatransfer/setdragimage/index.html index 29550800b6..df5d622015 100644 --- a/files/zh-cn/web/api/datatransfer/setdragimage/index.html +++ b/files/zh-cn/web/api/datatransfer/setdragimage/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/DataTransfer/setDragImage ---
{{APIRef("HTML Drag and Drop API")}}
-
+

发生拖动时,从拖动目标({{event("dragstart")}}事件触发的元素)生成半透明图像,并在拖动过程中跟随鼠标指针。这个图片是自动创建的,你不需要自己去创建它。然而,如果想要设置为自定义图像,那么 DataTransfer.setDragImage() 方法就能派上用场。

diff --git a/files/zh-cn/web/api/document/adoptnode/index.html b/files/zh-cn/web/api/document/adoptnode/index.html index 74d824966f..c7cc3d2e5a 100644 --- a/files/zh-cn/web/api/document/adoptnode/index.html +++ b/files/zh-cn/web/api/document/adoptnode/index.html @@ -79,11 +79,11 @@ document.getElementById("move").onclick = getEle -

将外部文档的节点插入当前文档之前,你必须使用 document.importNode() 从外部文档导入源节点,或者使用 document.adoptNode()导入源节点, +

将外部文档的节点插入当前文档之前,你必须使用 document.importNode() 从外部文档导入源节点,或者使用 document.adoptNode()导入源节点, 想要了解更多的 Node.ownerDocument 问题,请参考 W3C DOM FAQ.

即使你不执行导入动作,就执行插入外部文档中的节点.Firefox目前也不会报错(如果严格按标准执行,很多已有的网站都无法正常运行). - 我们鼓励开发者严格按标准修改自己已有的不符合上述标准的代码.

+ 我们鼓励开发者严格按标准修改自己已有的不符合上述标准的代码.

规范

diff --git a/files/zh-cn/web/api/document/cookie/index.html b/files/zh-cn/web/api/document/cookie/index.html index bf09d2d80d..698ff4e39a 100644 --- a/files/zh-cn/web/api/document/cookie/index.html +++ b/files/zh-cn/web/api/document/cookie/index.html @@ -8,7 +8,7 @@ translation_of: Web/API/Document/cookie ---
{{APIRef("DOM")}}
-
+

获取并设置与当前文档相关联的 cookie。可以把它当成一个 getter and setter

diff --git a/files/zh-cn/web/api/document/querycommandenabled/index.html b/files/zh-cn/web/api/document/querycommandenabled/index.html index 4dd87d963d..db39054dba 100644 --- a/files/zh-cn/web/api/document/querycommandenabled/index.html +++ b/files/zh-cn/web/api/document/querycommandenabled/index.html @@ -14,7 +14,7 @@ translation_of: Web/API/Document/queryCommandEnabled

注意

该方法在部分浏览器返回的结果是不可预料的。因此,建议使用execCommand的返回值直接判断,或通过其它方式嗅探,而非使用该方法。
-
+

Document.queryCommandEnabled() 方法可查询浏览器中指定的编辑指令是否可用。

diff --git a/files/zh-cn/web/api/element/append/index.html b/files/zh-cn/web/api/element/append/index.html index 00d22e2232..cf074d4b52 100644 --- a/files/zh-cn/web/api/element/append/index.html +++ b/files/zh-cn/web/api/element/append/index.html @@ -17,11 +17,11 @@ browser-compat: api.Element.append
被插入的 {{domxref("DOMString")}} 对象等价为 {{domxref("Text")}} 节点。
-
+
与 {{domxref("Node.appendChild()")}} 的差异:
-
+
diff --git a/files/zh-cn/web/api/globaleventhandlers/onerror/index.html b/files/zh-cn/web/api/globaleventhandlers/onerror/index.html index 2f06929c48..77da92911c 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onerror/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onerror/index.html @@ -11,7 +11,7 @@ translation_of: Web/API/GlobalEventHandlers/onerror
混合事件 {{domxref("GlobalEventHandlers")}} 的 onerror 属性是用于处理 {{event("error")}} 的事件
-
+

Error事件的事件处理程序,在各种目标对象的不同类型错误被触发:

diff --git a/files/zh-cn/web/api/globaleventhandlers/onformdata/index.html b/files/zh-cn/web/api/globaleventhandlers/onformdata/index.html index 1ed9c9b0ac..08f7ec0d69 100644 --- a/files/zh-cn/web/api/globaleventhandlers/onformdata/index.html +++ b/files/zh-cn/web/api/globaleventhandlers/onformdata/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/GlobalEventHandlers/onformdata ---
{{ApiRef("HTML DOM")}}
-
+

{{domxref("GlobalEventHandlers")}} 混入对象(mixin)的属性onformdata 是用于处理 {{event("formdata")}} 事件的, 它在整个列表展示所构建的表单数据之后被触发。触发会发生在表单发送时,但也可能由对某个{{domxref("FormData.FormData", "FormData()")}} 结构体的调用所触发。onformdata 在 {{domxref("HTMLFormElement")}}上有效。

diff --git a/files/zh-cn/web/api/hashchangeevent/newurl/index.html b/files/zh-cn/web/api/hashchangeevent/newurl/index.html index 104fa38bfa..f444e480f2 100644 --- a/files/zh-cn/web/api/hashchangeevent/newurl/index.html +++ b/files/zh-cn/web/api/hashchangeevent/newurl/index.html @@ -11,7 +11,7 @@ translation_of: Web/API/HashChangeEvent/newURL ---
{{APIRef("HTML DOM")}}
-
+

newURL 为 {{domxref("HashChangeEvent")}} 接口的只读属性,其值为窗口导航改变后的 URL。

diff --git a/files/zh-cn/web/api/hashchangeevent/oldurl/index.html b/files/zh-cn/web/api/hashchangeevent/oldurl/index.html index f93dd11624..0307b1431d 100644 --- a/files/zh-cn/web/api/hashchangeevent/oldurl/index.html +++ b/files/zh-cn/web/api/hashchangeevent/oldurl/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/HashChangeEvent/oldURL ---
{{APIRef("HTML DOM")}}
-
+

oldURL 为 {{domxref("HashChangeEvent")}} 接口的只读属性,其值为窗口导航改变前的 URL。

diff --git a/files/zh-cn/web/api/history/scrollrestoration/index.html b/files/zh-cn/web/api/history/scrollrestoration/index.html index 77c607304c..922e1615c5 100644 --- a/files/zh-cn/web/api/history/scrollrestoration/index.html +++ b/files/zh-cn/web/api/history/scrollrestoration/index.html @@ -12,7 +12,7 @@ translation_of: Web/API/History/scrollRestoration ---
{{APIRef("History API")}}
-
+

{DOMxRef("History"))的接口——滚动恢复属性允许web应用程序在历史导航上显式地设置默认滚动恢复行为

diff --git a/files/zh-cn/web/api/htmlcanvaselement/webglcontextlost_event/index.html b/files/zh-cn/web/api/htmlcanvaselement/webglcontextlost_event/index.html index bd8c206ab8..b0cf216d13 100644 --- a/files/zh-cn/web/api/htmlcanvaselement/webglcontextlost_event/index.html +++ b/files/zh-cn/web/api/htmlcanvaselement/webglcontextlost_event/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/HTMLCanvasElement/webglcontextlost_event ---
{{APIRef}}
-
+

如果浏览器检测到与 {{domxref("WebGLRenderingContext")}}对象关联的图形缓冲区已丢失,则会触发WebGL API 中的webglcontextlost 事件.

diff --git a/files/zh-cn/web/api/htmlmediaelement/index.html b/files/zh-cn/web/api/htmlmediaelement/index.html index 0fc7ee5662..07692b8b6c 100644 --- a/files/zh-cn/web/api/htmlmediaelement/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/index.html @@ -14,7 +14,7 @@ translation_of: Web/API/HTMLMediaElement
HTML媒体元素接口在属性和方法中添加了 {{domxref("HTMLElement", "HTML元素")}}来支持基础的媒体相关的能力,就像audio和video一样。{{domxref("HTMLVideoElement", "HTML 视频元素")}}和 {{domxref("HTMLAudioElement", "HTML 音频元素")}}元素都继承自此接口。
-
+
{{InheritanceDiagram(600, 180)}}
diff --git a/files/zh-cn/web/api/htmlmediaelement/pause_event/index.html b/files/zh-cn/web/api/htmlmediaelement/pause_event/index.html index 824f4bb5ff..97d32786b2 100644 --- a/files/zh-cn/web/api/htmlmediaelement/pause_event/index.html +++ b/files/zh-cn/web/api/htmlmediaelement/pause_event/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/HTMLMediaElement/pause_event ---
{{APIRef("HTMLMediaElement")}}
-
+

当暂停媒体播放时 pause 事件触发, 并且媒体进入暂停状态,最常见的是通过pause()方法来触发。 当pause() 触发时pause状态只改变1次,并且媒体的pause变成 true

diff --git a/files/zh-cn/web/api/htmlparagraphelement/index.html b/files/zh-cn/web/api/htmlparagraphelement/index.html index 29c6f49b82..bca99399d1 100644 --- a/files/zh-cn/web/api/htmlparagraphelement/index.html +++ b/files/zh-cn/web/api/htmlparagraphelement/index.html @@ -6,7 +6,7 @@ translation_of: Web/API/HTMLParagraphElement
{{ APIRef("HTML DOM") }}
-
+

HTMLParagraphElement 接口可以提供超过其继承的{{domxref("HTMLElement")}} 对象额外的属性 ,用以操作 {{HTMLElement("p")}} 元素.

diff --git a/files/zh-cn/web/api/htmlselectelement/selectedindex/index.html b/files/zh-cn/web/api/htmlselectelement/selectedindex/index.html index 6e720db9b0..4d313ba6cd 100644 --- a/files/zh-cn/web/api/htmlselectelement/selectedindex/index.html +++ b/files/zh-cn/web/api/htmlselectelement/selectedindex/index.html @@ -75,6 +75,6 @@ selectElem.addEventListener('change', function() {

{{Compat("api.HTMLSelectElement.selectedIndex")}}

-
+
diff --git a/files/zh-cn/web/api/htmlslotelement/index.html b/files/zh-cn/web/api/htmlslotelement/index.html index 6393babe39..9bbbe28197 100644 --- a/files/zh-cn/web/api/htmlslotelement/index.html +++ b/files/zh-cn/web/api/htmlslotelement/index.html @@ -9,7 +9,7 @@ translation_of: Web/API/HTMLSlotElement

属性

-

+
{{domxref('HTMLSlotElement.name')}}
diff --git a/files/zh-cn/web/api/idbkeyrange/lowerbound/index.html b/files/zh-cn/web/api/idbkeyrange/lowerbound/index.html index 8a9457d202..833c8e02ab 100644 --- a/files/zh-cn/web/api/idbkeyrange/lowerbound/index.html +++ b/files/zh-cn/web/api/idbkeyrange/lowerbound/index.html @@ -47,7 +47,7 @@ var myIDBKeyRange = IDBKeyRange.lowerBound(lower,

The value parameter passed was not a valid key.

-
+ @@ -81,7 +81,7 @@ var myIDBKeyRange = IDBKeyRange.lowerBound(lower, -
+

Specification

diff --git a/files/zh-cn/web/api/index.html b/files/zh-cn/web/api/index.html index aa9a01b49b..e91e8736f6 100644 --- a/files/zh-cn/web/api/index.html +++ b/files/zh-cn/web/api/index.html @@ -16,7 +16,7 @@ translation_of: Web/API
这是一个所有可用API的列表。
-
+
{{ListGroups}}
@@ -24,7 +24,7 @@ translation_of: Web/API
这是一个所有接口(即对象类型)的列表。
-
+
{{APIListAlpha}}
diff --git a/files/zh-cn/web/api/mouseevent/buttons/index.html b/files/zh-cn/web/api/mouseevent/buttons/index.html index 4e1b1afd0f..2b21d3c59e 100644 --- a/files/zh-cn/web/api/mouseevent/buttons/index.html +++ b/files/zh-cn/web/api/mouseevent/buttons/index.html @@ -7,7 +7,7 @@ translation_of: Web/API/MouseEvent/buttons
只读属性MouseEvent.buttons指示事件触发时哪些鼠标按键被按下。
-
+

每一个按键都用一个给定的数(见下文)表示。如果同时多个按键被按下,buttons 的值为各键对应值做与计算(+)后的值。例如,如果右键(2)和滚轮键(4)被同时按下,buttons 的值为 2 + 4 = 6。

diff --git a/files/zh-cn/web/api/navigator/canshare/index.html b/files/zh-cn/web/api/navigator/canshare/index.html index 6f807819d7..80f79c0773 100644 --- a/files/zh-cn/web/api/navigator/canshare/index.html +++ b/files/zh-cn/web/api/navigator/canshare/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/Navigator/canShare ---
{{APIRef("HTML DOM")}}{{SeeCompatTable}}{{securecontext_header}}
-
+
如果对Navigator.share() 的调用成功,则Web Share API的Navigator.canShare()方法将返回true。
diff --git a/files/zh-cn/web/api/node/firstchild/index.html b/files/zh-cn/web/api/node/firstchild/index.html index 3b79b77c6f..9c9808c4b5 100644 --- a/files/zh-cn/web/api/node/firstchild/index.html +++ b/files/zh-cn/web/api/node/firstchild/index.html @@ -62,12 +62,12 @@ translation_of: Web/API/Node/firstChild

备注

-

Gecko内核的浏览器会在源代码中标签内部有空白符的地方插入一个文本结点到文档中.因此,使用诸如 +

Gecko内核的浏览器会在源代码中标签内部有空白符的地方插入一个文本结点到文档中.因此,使用诸如 Node.firstChildNode.previousSibling 之类的方法可能会引用到一个空白符文本节点, 而不是使用者所预期得到的节点.

详情请参见 DOM 中的空白符 - 和W3C DOM 3 FAQ: 为什么一些文本节点是空的.

+ 和W3C DOM 3 FAQ: 为什么一些文本节点是空的.

规范

diff --git a/files/zh-cn/web/api/notification/index.html b/files/zh-cn/web/api/notification/index.html index 72b28708f2..1c85a11bca 100644 --- a/files/zh-cn/web/api/notification/index.html +++ b/files/zh-cn/web/api/notification/index.html @@ -13,7 +13,7 @@ translation_of: Web/API/Notification
{{securecontext_header}}
-
+

Notifications API 的通知接口用于向用户配置和显示桌面通知。

diff --git a/files/zh-cn/web/api/performance/getentriesbyname/index.html b/files/zh-cn/web/api/performance/getentriesbyname/index.html index aa47b35ba1..a6ca8028c3 100644 --- a/files/zh-cn/web/api/performance/getentriesbyname/index.html +++ b/files/zh-cn/web/api/performance/getentriesbyname/index.html @@ -7,7 +7,7 @@ translation_of: Web/API/Performance/getEntriesByName ---
getEntriesByName()方法返回一个给定名称和name和type属性的{{domxref("PerformanceEntry")}}对象数组。在创建performance标记或在明确的时间点测量(比如手动调用{{domxref("Performance.mark","mark()")}}方法)也可以创建这样的对象数组。
-
+

在Workers中可以使用该方法。

diff --git a/files/zh-cn/web/api/performanceobserver/index.html b/files/zh-cn/web/api/performanceobserver/index.html index 16b1f768d8..b63bf20b2f 100644 --- a/files/zh-cn/web/api/performanceobserver/index.html +++ b/files/zh-cn/web/api/performanceobserver/index.html @@ -12,7 +12,7 @@ translation_of: Web/API/PerformanceObserver
PerformanceObserver 用于监测性能度量事件,在浏览器的性能时间轴记录下一个新的 {{domxref("PerformanceEntry","performance entries", '', 'true')}}  的时候将会被通知 。
-
+
{{AvailableInWorkers}}
diff --git a/files/zh-cn/web/api/performanceresourcetiming/index.html b/files/zh-cn/web/api/performanceresourcetiming/index.html index 37f8077dd0..a9c3edfeb1 100644 --- a/files/zh-cn/web/api/performanceresourcetiming/index.html +++ b/files/zh-cn/web/api/performanceresourcetiming/index.html @@ -7,11 +7,11 @@ translation_of: Web/API/PerformanceResourceTiming
PerformanceResourceTiming接口可以检索和分析有关加载应用程序资源的详细网络计时数据。 应用程序可以使用timing指标来确定获取特定资源所需的时间长度,例如{{domxref("XMLHttpRequest")}}{{SVGElement("SVG","SVG element")}},image或script。
-
+
这个接口使用{{domxref("DOMHighResTimeStamp","high-resolution timestamps")}} 属性创建加载资源时间轴,用于网络事件,例如重定向开始( redirect start )和结束时间,获取开始( fetch start ),DNS查找开始( DNS lookup start )和结束时间,响应开始( response start )和结束时间等。此外,接口扩展{{domxref("PerformanceEntry")}}与其他属性,这些属性提供有关获取资源大小的数据以及初始化时获取的资源类型。
-
+

{{InheritanceDiagram}}

diff --git a/files/zh-cn/web/api/queuemicrotask/index.html b/files/zh-cn/web/api/queuemicrotask/index.html index 9079205222..5da2006fc3 100644 --- a/files/zh-cn/web/api/queuemicrotask/index.html +++ b/files/zh-cn/web/api/queuemicrotask/index.html @@ -16,7 +16,7 @@ original_slug: Web/API/WindowOrWorkerGlobalScope/queueMicrotask
{{domxref("Window")}} 或 {{domxref("Worker")}} 接口的 queueMicrotask() 方法,queues a microtask to be executed at a safe time prior to control returning to the browser's event loop.microtask 是一个简短的函数,它将在当前任务(task)完成其工作之后运行,并且在执行上下文的控制返回到浏览器的事件循环之前,没有其他代码等待运行。The microtask is a short function which will run after the current task has completed its work and when there is no other code waiting to be run before control of the execution context is returned to the browser's event loop.
-
+

This lets your code run without interfering with any other, potentially higher priority, code that is pending, but before the browser regains control over the execution context, potentially depending on work you need to complete. You can learn more about how to use microtasks and why you might choose to do so in our microtask guide.

diff --git a/files/zh-cn/web/api/request/clone/index.html b/files/zh-cn/web/api/request/clone/index.html index a256435381..e410740be6 100644 --- a/files/zh-cn/web/api/request/clone/index.html +++ b/files/zh-cn/web/api/request/clone/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/Request/clone ---
{{APIRef("Fetch")}}
-
+

 {{domxref("Request")}} 接口中的clone() 方法可以创建一个当前Request 对象的副本。

diff --git a/files/zh-cn/web/api/request/index.html b/files/zh-cn/web/api/request/index.html index 10248d0e2f..c2c065efff 100644 --- a/files/zh-cn/web/api/request/index.html +++ b/files/zh-cn/web/api/request/index.html @@ -7,7 +7,7 @@ translation_of: Web/API/Request
Fetch API 的 Request接口?用来表示资源请求。
-
+

你可以使用  {{domxref("Request.Request()")}} ?构造函数创建一个Request 对象,但是你可能会遇到一个 Request 对象作为其它 API 的操作被返回,比如一个 service worker的{{domxref("FetchEvent.request")}}。

diff --git a/files/zh-cn/web/api/response/response/index.html b/files/zh-cn/web/api/response/response/index.html index 7dd909c604..59383ecef7 100644 --- a/files/zh-cn/web/api/response/response/index.html +++ b/files/zh-cn/web/api/response/response/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/Response/Response ---
{{APIRef("Fetch")}}
-
+

Response() 构造函数创建了一个新的  {{domxref("Response")}} 对象.

diff --git a/files/zh-cn/web/api/rtcpeerconnection/createoffer/index.html b/files/zh-cn/web/api/rtcpeerconnection/createoffer/index.html index 739b0fef65..4e9b96f3cf 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/createoffer/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/createoffer/index.html @@ -15,7 +15,7 @@ translation_of: Web/API/RTCPeerConnection/createOffer
{{domxref("RTCPeerConnection")}}接口的createOffer()方法启动创建一个{{Glossary("SDP")}} offer,目的是启动一个新的WebRTC去连接远程端点。SDP offer包含有关已附加到WebRTC会话,浏览器支持的编解码器和选项的所有{{domxref("MediaStreamTrack")}}s信息,以及{{Glossary("ICE")}} 代理,目的是通过信令信道发送给潜在远程端点,以请求连接或更新现有连接的配置。
-
+
返回值是一个{{domxref("Promise")}},创建 offer 后,将使用包含新创建的要约的{{domxref("RTCSessionDescription")}}对象来解析该返回值。
diff --git a/files/zh-cn/web/api/sharedworker/index.html b/files/zh-cn/web/api/sharedworker/index.html index edb976bd99..b13c0b2fa6 100644 --- a/files/zh-cn/web/api/sharedworker/index.html +++ b/files/zh-cn/web/api/sharedworker/index.html @@ -11,7 +11,7 @@ translation_of: Web/API/SharedWorker
SharedWorker 接口代表一种特定类型的 worker,可以从几个浏览上下文中访问,例如几个窗口、iframe 或其他 worker。它们实现一个不同于普通 worker 的接口,具有不同的全局作用域, {{domxref("SharedWorkerGlobalScope")}} 。
-
+

注意:如果要使 SharedWorker 连接到多个不同的页面,这些页面必须是同源的(相同的协议、host 以及端口)。

diff --git a/files/zh-cn/web/api/touch_events/index.html b/files/zh-cn/web/api/touch_events/index.html index 50da7204f6..277b74ad81 100644 --- a/files/zh-cn/web/api/touch_events/index.html +++ b/files/zh-cn/web/api/touch_events/index.html @@ -16,11 +16,11 @@ translation_of: Web/API/Touch_events ---
{{DefaultAPISidebar("Touch Events")}}
-
+

为了给基于触摸的用户界面提供高质量的支持,触摸事件提供了在触摸屏或触控板上解释手指(或触控笔)活动的能力。

-
+

触摸事件接口是较为底层的 API,可为特定程序提供多点触控交互(比如双指手势)的支持。多点触控交互开始于一个手指(或触控笔)开始接触设备平面的时刻。随后其他手指也可触摸设备表面,并随意进行划动。当所有手指离开设备平面时,交互结束。整个交互期间,程序接收开始、移动、结束三个阶段的触摸事件。

diff --git a/files/zh-cn/web/api/url/port/index.html b/files/zh-cn/web/api/url/port/index.html index 5a50e2daf1..243911d1be 100644 --- a/files/zh-cn/web/api/url/port/index.html +++ b/files/zh-cn/web/api/url/port/index.html @@ -7,7 +7,7 @@ translation_of: Web/API/URL/port
{{domxref("URL")}} 接口的端口属性是包含了URL的端口号信息的{{domxref("USVString")}}值,如果URL中不包含明确的端口号,这个属性将为''.
-
+

{{AvailableInWorkers}}

diff --git a/files/zh-cn/web/api/urlsearchparams/foreach/index.html b/files/zh-cn/web/api/urlsearchparams/foreach/index.html index 7ce04858eb..2d7d76958d 100644 --- a/files/zh-cn/web/api/urlsearchparams/foreach/index.html +++ b/files/zh-cn/web/api/urlsearchparams/foreach/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/URLSearchParams/forEach ---
{{APIRef("URL API")}}
-
+

   URLSearchParams的实例对象上的方法forEach允许通过回调函数来遍历URLSearchParams实例对象上的键值对

diff --git a/files/zh-cn/web/api/window/getselection/index.html b/files/zh-cn/web/api/window/getselection/index.html index fcaf9bf733..d9207bbf54 100644 --- a/files/zh-cn/web/api/window/getselection/index.html +++ b/files/zh-cn/web/api/window/getselection/index.html @@ -5,7 +5,7 @@ translation_of: Web/API/Window/getSelection ---
{{ ApiRef() }}
-
+

返回一个 {{domxref("Selection")}} 对象,表示用户选择的文本范围或光标的当前位置。

diff --git a/files/zh-cn/web/api/windoweventhandlers/onbeforeprint/index.html b/files/zh-cn/web/api/windoweventhandlers/onbeforeprint/index.html index a5673c741f..68d2085285 100644 --- a/files/zh-cn/web/api/windoweventhandlers/onbeforeprint/index.html +++ b/files/zh-cn/web/api/windoweventhandlers/onbeforeprint/index.html @@ -7,7 +7,7 @@ translation_of: Web/API/WindowEventHandlers/onbeforeprint
{{domxref("WindowEventHandlers")}}的onbeforeprint属性是用于处理当前窗口的{{event("beforeprint")}}事件的{{event("Event_handlers", "event handler")}}。在打开打印对话窗口之前会触发这些事件。
-
+
beforeprint{{event("afterprint")}}事件允许网页在打印开始前更改他们的内容(例如:可能是删除一个横幅),然后在打印完成后恢复这些更改。通常,您应该更喜欢使用@media printCSS规则,但是在某些情况下可能有必要使用这些事件。
diff --git a/files/zh-cn/web/api/worker/message_event/index.html b/files/zh-cn/web/api/worker/message_event/index.html index 909bfc8434..1ead51bd87 100644 --- a/files/zh-cn/web/api/worker/message_event/index.html +++ b/files/zh-cn/web/api/worker/message_event/index.html @@ -7,9 +7,9 @@ translation_of: Web/API/Worker/message_event
当 worker 的父级接收到来自其 worker 的消息时,会在 {{domxref('Worker')}} 对象上触发 message 事件。例如:当 worker 通过 DedicatedWorkerGlobalScope.postMessage() 发送了一条消息时。
-
-
+ + diff --git a/files/zh-cn/web/api/worker/worker/index.html b/files/zh-cn/web/api/worker/worker/index.html index 1dc6244203..a4ac29fb3e 100644 --- a/files/zh-cn/web/api/worker/worker/index.html +++ b/files/zh-cn/web/api/worker/worker/index.html @@ -102,7 +102,7 @@ first.onchange = function() { -
+
另请参阅
diff --git a/files/zh-cn/web/api/xmlhttprequest/abort_event/index.html b/files/zh-cn/web/api/xmlhttprequest/abort_event/index.html index 9bdad07e9d..d1a9868628 100644 --- a/files/zh-cn/web/api/xmlhttprequest/abort_event/index.html +++ b/files/zh-cn/web/api/xmlhttprequest/abort_event/index.html @@ -8,11 +8,11 @@ translation_of: Web/API/XMLHttpRequest/abort_event ---
{{APIRef}}
-
+
当一个请求终止时 abort 事件被触发,比如程序执行 {{domxref("XMLHttpRequest.abort()")}}。
-
+
diff --git a/files/zh-cn/web/api/xmlhttprequest/statustext/index.html b/files/zh-cn/web/api/xmlhttprequest/statustext/index.html index cd9bd26b5f..b2e722a4b9 100644 --- a/files/zh-cn/web/api/xmlhttprequest/statustext/index.html +++ b/files/zh-cn/web/api/xmlhttprequest/statustext/index.html @@ -7,7 +7,7 @@ translation_of: Web/API/XMLHttpRequest/statusText
只读属性 XMLHttpRequest.statusText 返回了XMLHttpRequest 请求中由服务器返回的一个DOMString 类型的文本信息,这则信息中也包含了响应的数字状态码。不同于使用一个数字来指示的状态码XMLHTTPRequest.status,这个属性包含了返回状态对应的文本信息,例如"OK"或是"Not Found"。如果请求的状态readyState的值为"UNSENT"或者"OPENED",则这个属性的值将会是一个空字符串。
-
+
如果服务器未明确指定一个状态文本信息,则statusText的值将会被自动赋值为"OK"。
-- cgit v1.2.3-54-g00ecf