Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert to markdown for web/{javascript, manifest, mathml, media, performance} zh-CN #7558

Merged
merged 3 commits into from
Aug 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/console/warn/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ translation_of: Web/API/Console/warn

{{AvailableInWorkers}}

> **备注:**在火狐浏览器里,警告会有一个小感叹号图标在 Web 控制台信息前面。
> **备注:** 在火狐浏览器里,警告会有一个小感叹号图标在 Web 控制台信息前面。

## 语法

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/document/compatmode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ mode = document.compatMode;
- `"BackCompat"`:文档为怪异模式。
- `"CSS1Compat"`:文档不是怪异模式,意味着文档处于标准模式或者准标准模式。

> **备注:**现在,这些模式都已经被标准化了,准标准模式已和标准模式相同,而标准模式成为了默认表现。标准模式和准标准模式这两个名字已经失去了意义,不再在规范文档中出现。
> **备注:** 现在,这些模式都已经被标准化了,准标准模式已和标准模式相同,而标准模式成为了默认表现。标准模式和准标准模式这两个名字已经失去了意义,不再在规范文档中出现。

## 例子

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/element/blur_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ original_slug: Web/Events/blur
- 默认行为
- : 无

> **备注:**{{domxref("Document.activeElement")}} 的值随浏览器的不同而不同({{bug(452307)}}):IE10 把值设为焦点将要移向的对象,而 Firefox 和 Chrome 往往把值设为 `body`。
> **备注:** {{domxref("Document.activeElement")}} 的值随浏览器的不同而不同({{bug(452307)}}):IE10 把值设为焦点将要移向的对象,而 Firefox 和 Chrome 往往把值设为 `body`。

## 属性

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/element/scroll_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ element.onscroll = functionReference

functionReference 是一个函数的引用。当该元素滚动时,会执行该函数。

> **备注:**不要将 onscroll 与 {{domxref("GlobalEventHandlers.onwheel", "onwheel")}}混淆。onwheel 是鼠标滚轮旋转, 而 onscroll 处理的是对象内部内容区的滚动事件。
> **备注:** 不要将 onscroll 与 {{domxref("GlobalEventHandlers.onwheel", "onwheel")}}混淆。onwheel 是鼠标滚轮旋转, 而 onscroll 处理的是对象内部内容区的滚动事件。

## 示例

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/eventsource/eventsource/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ evtSource.onmessage = function(e) {
}
```

> **备注:**你可以在 GitHub 查看完整示例 — 请查看 [Simple SSE demo using PHP.](https://github.com/mdn/dom-examples/tree/master/server-sent-events)
> **备注:** 你可以在 GitHub 查看完整示例 — 请查看 [Simple SSE demo using PHP.](https://github.com/mdn/dom-examples/tree/master/server-sent-events)

## 规范

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/fetch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ original_slug: Web/API/WindowOrWorkerGlobalScope/fetch

`fetch()` 方法由 [Content Security Policy](/en-US/docs/Security/CSP/CSP_policy_directives) 的 `connect-src`指令控制,而不是它请求的资源。

> **备注:**{{domxref("fetch()")}} 方法的参数与 {{domxref("Request.Request","Request()")}} 构造器是一样的。
> **备注:** {{domxref("fetch()")}} 方法的参数与 {{domxref("Request.Request","Request()")}} 构造器是一样的。

## 语法

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/headers/delete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ translation_of: Web/API/Headers/delete
- header 名在 HTTP header 中是不存在的。
- header 被锁定了.​

> **备注:**出于安全原因,部分头信息只能被用户代理控制。这些头信息包括 {{Glossary("Forbidden_header_name", "forbidden header names", 1)}} 和 {{Glossary("Forbidden_response_header_name", "forbidden response header names", 1)}}.
> **备注:** 出于安全原因,部分头信息只能被用户代理控制。这些头信息包括 {{Glossary("Forbidden_header_name", "forbidden header names", 1)}} 和 {{Glossary("Forbidden_response_header_name", "forbidden response header names", 1)}}.

## 语法

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/htmlelement/offsetwidth/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var offsetWidth =element.offsetWidth;

`intElemOffsetWidth` is a variable storing an integer corresponding to the `offsetWidth` pixel value of the element. `offsetWidth` 是一个只读属性。

> **备注:**这个属性将会 round(四舍五入) 为一个整数。如果你想要一个 fractional(小数) 值,请使用{{ domxref("element.getBoundingClientRect()") }}.
> **备注:** 这个属性将会 round(四舍五入) 为一个整数。如果你想要一个 fractional(小数) 值,请使用{{ domxref("element.getBoundingClientRect()") }}.

## 示例

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (available) {

### 备注

> **备注:**查询的 URI 和当前页面的 URI 不同域的话,会抛出安全异常。
> **备注:** 查询的 URI 和当前页面的 URI 不同域的话,会抛出安全异常。

### 规范

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/storage/clear/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function populateStorage() {
}
```

> **备注:**一个实际的例子 [Web Storage Demo](https://github.com/mdn/web-storage-demo)。
> **备注:** 一个实际的例子 [Web Storage Demo](https://github.com/mdn/web-storage-demo)。

## 规范

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/storage/getitem/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function setStyles() {
}
```

> **备注:**一个实际的例子 [Web Storage Demo](https://github.com/mdn/web-storage-demo)。
> **备注:** 一个实际的例子 [Web Storage Demo](https://github.com/mdn/web-storage-demo)。

## 规范

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/storage/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function setStyles() {
}
```

> **备注:**要运行完整的例子,可查看 [Web Storage Demo](https://mdn.github.io/dom-examples/web-storage/)。
> **备注:** 要运行完整的例子,可查看 [Web Storage Demo](https://mdn.github.io/dom-examples/web-storage/)。

## 规范

Expand Down
4 changes: 2 additions & 2 deletions files/zh-cn/web/api/window/domcontentloaded_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ document.addEventListener('DOMContentLoaded',function(){

如果将 link 置于 script 之后,就会立即打印。

> **备注:**同步 JavaScript 会暂停 DOM 的解析。
> **备注:** 同步 JavaScript 会暂停 DOM 的解析。

> **备注:**还有许多通用和独立的库提供跨浏览器方法来检测 DOM 是否已准备就绪
> **备注:** 还有许多通用和独立的库提供跨浏览器方法来检测 DOM 是否已准备就绪

## 加速中

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/window/find/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ translation_of: Web/API/Window/find
---
{{ ApiRef() }}

> **备注:**`window.find()`可能会在未来版本的 Gecko 中被废弃。查看 {{Bug("672395")}}
> **备注:** `window.find()` 可能会在未来版本的 Gecko 中被废弃。查看 {{Bug("672395")}}

### 概述

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/window/showmodaldialog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ returnVal = window.showModalDialog(uri[, arguments][, options]);
| `resizable: {on \| off \| yes \| no \| 1 \| 0 }` | If this argument's value is `on`, `yes`, or 1, the dialog window can be resized by the user; otherwise its size is fixed. The default value is `no`. |
| `scroll: {on \| off \| yes \| no \| 1 \| 0 }` | If this argument's value is `on`, `yes`, or 1, the dialog window has scroll bars; otherwise its size is fixed. The default value is `no`. |

> **备注:**Firefox does not implement the `dialogHide`, `edge`, `status`, or `unadorned` arguments.
> **备注:** Firefox does not implement the `dialogHide`, `edge`, `status`, or `unadorned` arguments.

## Compatibility

Expand Down
Loading