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

chore(zh-cn): batch replace '相关链接' to ‘参见' part 2 & minor fixes #16781

Merged
merged 4 commits into from
Oct 31, 2023
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
18 changes: 6 additions & 12 deletions files/zh-cn/web/api/cssstylerule/style/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,15 @@ slug: Web/API/CSSStyleRule/style

{{ ApiRef() }}

### 概述

返回 一个 {{ domxref("CSSStyleDeclaration") }}接口对象,它代表了{{ DOMXref("CSSRule") }}的 [declaration block](http://www.w3.org/TR/1998/REC-CSS2-19980512/syndata.html#block)。

### 语法
## 语法

```plain
styleObj = cssRule.style
```

### 例子
## 示例

```js
function stilo() {
Expand All @@ -24,18 +22,14 @@ function stilo() {
// 弹出 "background-color: gray;"
```

### 备注
## 备注

declaration block 是样式规则中花括号内的部分(选择器就在花括号的外部)

### 相关链接

- [DOM CSS Properties](/zh-CN/CSS/CSS_Reference)

### 规范
## 规范

[DOM Level 2 CSS: style](http://www.w3.org/TR/DOM-Level-2-Style/css.html#CSS-CSSStyleRule-style)
{{Specifications}}

### 浏览器兼容性
## 浏览器兼容性

{{Compat}}
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/fetch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ var myRequest = new Request("flowers.jpg", myInit);

{{Compat}}

## 相关链接
## 参见

- [Fetch API](/zh-CN/docs/Web/API/Fetch_API)
- [ServiceWorker API](/zh-CN/docs/Web/API/ServiceWorker_API)
- [HTTP access control (CORS)](/zh-CN/docs/Web/HTTP/Access_control_CORS)
- [ServiceWorker API](/zh-CN/docs/Web/API/Service_Worker_API)
- [HTTP 访问控制(CORS](/zh-CN/docs/Web/HTTP/CORS)
- [HTTP](/zh-CN/docs/Web/HTTP)
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/filereader/abort/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ instanceOfFileReader.abort();

{{Compat}}

## 相关链接
## 参见

- {{domxref("FileReader")}}
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/filereader/error/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ var error = instanceOfFileReader.error

{{Compat}}

## 相关链接
## 参见

- {{domxref("FileReader")}}
4 changes: 2 additions & 2 deletions files/zh-cn/web/api/filereader/filereader/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ function printFile(file) {

{{Specifications}}

## 相关链接
## 参见

- [Using files from web applications](/zh-CN/docs/Web/API/File/Using_files_from_web_applications)
- [web 应用程序中使用文件](/zh-CN/docs/Web/API/File_API/Using_files_from_web_applications)
5 changes: 3 additions & 2 deletions files/zh-cn/web/api/filereader/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ slug: Web/API/FileReader

{{Compat}}

## 相关链接
## 参见

- [如何在 web 应用程序中使用文件](/zh-CN/Using_files_from_web_applications)
- [如何在 web 应用程序中使用文件](/zh-CN/docs/Web/API/File_API/Using_files_from_web_applications)
- {{domxref("File")}}
- {{domxref("Blob")}}
- {{domxref("FileReaderSync")}}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ instanceOfFileReader.readAsArrayBuffer(blob);

{{Compat}}

## 相关链接
## 参见

- {{domxref("FileReader")}}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ canvas.toBlob(function (blob) {

{{Compat}}

## 相关链接
## 参见

- {{domxref("FileReader")}}
9 changes: 5 additions & 4 deletions files/zh-cn/web/api/filereadersync/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,15 +179,16 @@ String readAsDataURL(
- `EncodingError`
- : 当资源是一个 data URL,并且超过了浏览器的限制大小时触发该异常。

## Specifications
## 规范

{{Specifications}}

## 浏览器兼容性

{{Compat}}

## 相关链接
## 参见

- [File API Specification: FileReaderSync](https://www.w3.org/TR/FileAPI/#FileReaderSync)
- Related interfaces: {{ domxref("FileReader") }}, {{ domxref("BlobBuilder") }}, {{ domxref("File") }}, {{ domxref("Blob") }}
- {{DOMxRef("FileReader")}}
- {{DOMxRef("Blob")}}
- {{DOMxRef("File")}}
8 changes: 4 additions & 4 deletions files/zh-cn/web/api/filesystem/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ slug: Web/API/FileSystem

{{Compat}}

## 相关链接
## 参见

引用:[File System API](/zh-CN/DOM/File_API/File_System_API)

介绍:[Basic Concepts About the File System API](/zh-CN/DOM/File_APIs/Filesystem/Basic_Concepts_About_the_Filesystem_API)
- [文件与目录条目 API](/zh-CN/docs/Web/API/File_and_Directory_Entries_API)
- [文件与目录条目 API 介绍](/zh-CN/docs/Web/API/File_and_Directory_Entries_API/Introduction)
- {{domxref("FileSystemEntry")}}、{{domxref("FileSystemFileEntry")}} 和 {{domxref("FileSystemDirectoryEntry")}}
6 changes: 2 additions & 4 deletions files/zh-cn/web/api/formdata/append/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ formData.append("userpic[]", myFileInput2.files[0], "chris2.jpg");

{{Compat}}

## 相关链接
## 参见

- {{domxref("XMLHTTPRequest")}}
- [Using XMLHttpRequest](/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
- [Using FormData objects](/zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- {{HTMLElement("Form")}}
6 changes: 2 additions & 4 deletions files/zh-cn/web/api/formdata/entries/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ key2, value2

{{Compat}}

## 相关链接
## 参见

- {{domxref("XMLHTTPRequest")}}
- [Using XMLHttpRequest](/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
- [Using FormData objects](/zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- {{HTMLElement("Form")}}
6 changes: 2 additions & 4 deletions files/zh-cn/web/api/formdata/formdata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ formData = new FormData(myForm);

在 Gecko 7.0 之前,如果你将{{domxref("Blob")}}作为数据添加到 form 对象中,文件名就是空的,这可能导致服务器在 HTTP 头的 Content-Disposition 中设置的文件名为空而引起错误。从 Gecko 7.0 开始,将会使用"blob"作为 Blob 数据的文件名。

## 相关链接
## 参见

- {{domxref("XMLHTTPRequest")}}
- [Using XMLHttpRequest](/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
- [Using FormData objects](/zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- {{HTMLElement("Form")}}
6 changes: 2 additions & 4 deletions files/zh-cn/web/api/formdata/get/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ formData.get("username"); // Returns "Chris"

{{Compat}}

## 相关链接
## 参见

- {{domxref("XMLHTTPRequest")}}
- [Using XMLHttpRequest](/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
- [Using FormData objects](/zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- {{HTMLElement("Form")}}
6 changes: 2 additions & 4 deletions files/zh-cn/web/api/formdata/getall/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ formData.getAll("username"); // Returns ["Chris", "Bob"]

{{Compat}}

## 相关链接
## 参见

- {{domxref("XMLHTTPRequest")}}
- [使用 XMLHttpRequest](/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
- [使用 FormData 对象](/zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- {{HTMLElement("Form")}}
6 changes: 2 additions & 4 deletions files/zh-cn/web/api/formdata/has/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ formData.has("username"); // Returns true

{{Compat}}

## 相关链接
## 参见

- {{domxref("XMLHTTPRequest")}}
- [Using XMLHttpRequest](/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
- [Using FormData objects](/zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- {{HTMLElement("Form")}}
6 changes: 2 additions & 4 deletions files/zh-cn/web/api/formdata/keys/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ key2

{{Compat}}

## 相关链接
## 参见

- {{domxref("XMLHTTPRequest")}}
- [Using XMLHttpRequest](/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
- [Using FormData objects](/zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- {{HTMLElement("Form")}}
6 changes: 2 additions & 4 deletions files/zh-cn/web/api/formdata/set/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ formData.set("userpic", myFileInput.files[0], "chris.jpg");

{{Compat}}

## 相关链接
## 参见

- {{domxref("XMLHTTPRequest")}}
- [Using XMLHttpRequest](/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest)
- [Using FormData objects](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- {{HTMLElement("Form")}}
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ $.ajax({

如果你想知道不使用 FormData 对象的情况下,通过[AJAX](/zh-CN/docs/AJAX)序列化和提交表单 [请点击这里](/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#Submitting_forms_and_uploading_files)。

## 相关链接
## 参见

- [Using XMLHttpRequest](/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest)
- [使用 XMLHttpRequest](/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest)
- {{domxref("HTMLFormElement")}}
- {{domxref("Blob")}}
- [Typed Arrays](/zh-CN/docs/Web/JavaScript/Typed_arrays)
- [类型化数组](/zh-CN/docs/Web/JavaScript/Guide/Typed_arrays)
6 changes: 2 additions & 4 deletions files/zh-cn/web/api/formdata/values/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ value2

{{Compat}}

## 相关链接
## 参见

- {{domxref("XMLHTTPRequest")}}
- [Using XMLHttpRequest](/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
- [Using FormData objects](/zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- {{HTMLElement("Form")}}
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/headers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ myHeaders.get("Content-Type");

{{Compat}}

## 相关链接
## 参见

- [ServiceWorker API](/zh-CN/docs/Web/API/ServiceWorker_API)
- [HTTP access control (CORS)](/zh-CN/docs/Web/HTTP/Access_control_CORS)
- [ServiceWorker API](/zh-CN/docs/Web/API/Service_Worker_API)
- [HTTP 访问控制(CORS](/zh-CN/docs/Web/HTTP/CORS)
- [HTTP](/zh-CN/docs/Web/HTTP)
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/headers/keys/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ vary

{{Compat}}

## 相关链接
## 参见

- [ServiceWorker API](/zh-CN/docs/Web/API/ServiceWorker_API)
- [HTTP access control (CORS)](/zh-CN/docs/Web/HTTP/Access_control_CORS)
- [ServiceWorker API](/zh-CN/docs/Web/API/Service_Worker_API)
- [HTTP 访问控制(CORS](/zh-CN/docs/Web/HTTP/CORS)
- [HTTP](/zh-CN/docs/Web/HTTP)
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/response/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ const response = new Response();

{{Compat}}

## 相关链接
## 参见

- [ServiceWorker API](/zh-CN/docs/Web/API/ServiceWorker_API)
- [HTTP access control (CORS)](/zh-CN/docs/Web/HTTP/Access_control_CORS)
- [ServiceWorker API](/zh-CN/docs/Web/API/Service_Worker_API)
- [HTTP 访问控制(CORS](/zh-CN/docs/Web/HTTP/CORS)
- [HTTP](/zh-CN/docs/Web/HTTP)
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/response/json/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ fetch(myRequest)

{{Compat}}

## 相关链接
## 参见

- [ServiceWorker API](/zh-CN/docs/Web/API/ServiceWorker_API)
- [HTTP access control (CORS)](/zh-CN/docs/Web/HTTP/Access_control_CORS)
- [ServiceWorker API](/zh-CN/docs/Web/API/Service_Worker_API)
- [HTTP 访问控制(CORS](/zh-CN/docs/Web/HTTP/CORS)
- [HTTP](/zh-CN/docs/Web/HTTP)
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/response/ok/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ fetch(myRequest).then(function (response) {

{{Compat}}

## 相关链接
## 参见

- [ServiceWorker API](/zh-CN/docs/Web/API/ServiceWorker_API)
- [HTTP access control (CORS)](/zh-CN/docs/Web/HTTP/Access_control_CORS)
- [ServiceWorker API](/zh-CN/docs/Web/API/Service_Worker_API)
- [HTTP 访问控制(CORS](/zh-CN/docs/Web/HTTP/CORS)
- [HTTP](/zh-CN/docs/Web/HTTP)
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/response/redirected/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ fetch("awesome-picture.jpg", { redirect: "error" })

{{Compat}}

## 相关链接
## 参见

- [Fetch API](/zh-CN/docs/Web/API/Fetch_API)
- [ServiceWorker API](/zh-CN/docs/Web/API/ServiceWorker_API)
- [HTTP access control (CORS)](/zh-CN/docs/Web/HTTP/Access_control_CORS)
- [ServiceWorker API](/zh-CN/docs/Web/API/Service_Worker_API)
- [HTTP 访问控制(CORS](/zh-CN/docs/Web/HTTP/CORS)
- [HTTP](/zh-CN/docs/Web/HTTP)
20 changes: 8 additions & 12 deletions files/zh-cn/web/api/screen/colordepth/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,15 @@ title: Screen.colorDepth
slug: Web/API/Screen/colorDepth
---

{{APIRef("CSSOM View")}}

## 概述
{{APIRef("CSSOM")}}

返回屏幕的颜色深度(color depth)。根据 CSSOM( CSS 对象模型 ) 视图,为兼容起见,该值总为 24。

## 语法

```plain
bitDepth = window.screen.colorDepth
```

## 示例

```plain
```js
// 检测屏幕的颜色深度
if ( window.screen.colorDepth < 8) {
if (window.screen.colorDepth < 8) {
// 使用低色彩版本页面
} else {
// 使用常规的彩色版页面
Expand All @@ -30,6 +22,10 @@ if ( window.screen.colorDepth < 8) {

{{Specifications}}

## 相关链接
## 浏览器兼容性

{{Compat}}

## 参见

- {{domxref("Screen.pixelDepth")}}
Loading