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

[zh-cn] sync translated content #16878

Merged
merged 4 commits into from
Nov 9, 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: 12 additions & 6 deletions files/zh-cn/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,10 @@
/zh-CN/docs/DOM/XMLDocument /zh-CN/docs/Web/API/XMLDocument
/zh-CN/docs/DOM/XMLHttpRequest /zh-CN/docs/Web/API/XMLHttpRequest
/zh-CN/docs/DOM/XMLHttpRequest/FormData /zh-CN/docs/Web/API/FormData
/zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects /zh-CN/docs/Web/API/FormData/Using_FormData_Objects
/zh-CN/docs/DOM/XMLHttpRequest/Sending_and_Receiving_Binary_Data /zh-CN/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data
/zh-CN/docs/DOM/XMLHttpRequest/Synchronous_and_Asynchronous_Requests /zh-CN/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests
/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest /zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest
/zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects /zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects
/zh-CN/docs/DOM/XMLHttpRequest/Sending_and_Receiving_Binary_Data /zh-CN/docs/Web/API/XMLHttpRequest_API/Sending_and_Receiving_Binary_Data
/zh-CN/docs/DOM/XMLHttpRequest/Synchronous_and_Asynchronous_Requests /zh-CN/docs/Web/API/XMLHttpRequest_API/Synchronous_and_Asynchronous_Requests
/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest /zh-CN/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest
/zh-CN/docs/DOM/console.dir /zh-CN/docs/Web/API/console/dir
/zh-CN/docs/DOM/console.group /zh-CN/docs/Web/API/console/group
/zh-CN/docs/DOM/console.groupCollapsed /zh-CN/docs/Web/API/console/groupCollapsed
Expand Down Expand Up @@ -1490,6 +1490,7 @@
/zh-CN/docs/Web/API/FileReader/中止事件(abort) /zh-CN/docs/Web/API/FileReader/abort_event
/zh-CN/docs/Web/API/File_Handle_API /zh-CN/docs/Web/API/File_and_Directory_Entries_API
/zh-CN/docs/Web/API/File_System_Access_API /zh-CN/docs/Web/API/File_System_API
/zh-CN/docs/Web/API/FormData/Using_FormData_Objects /zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects
/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
/zh-CN/docs/Web/API/Geolocation/Using_geolocation /zh-CN/docs/Web/API/Geolocation_API
Expand Down Expand Up @@ -1903,7 +1904,11 @@
/zh-CN/docs/Web/API/XMLDocument/async /zh-CN/docs/Web/API/XMLDocument
/zh-CN/docs/Web/API/XMLDocument/load /zh-CN/docs/Web/API/XMLDocument
/zh-CN/docs/Web/API/XMLHttpRequest/FormData /zh-CN/docs/Web/API/FormData
/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6 /zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest
/zh-CN/docs/Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest /zh-CN/docs/Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest
/zh-CN/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data /zh-CN/docs/Web/API/XMLHttpRequest_API/Sending_and_Receiving_Binary_Data
/zh-CN/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests /zh-CN/docs/Web/API/XMLHttpRequest_API/Synchronous_and_Asynchronous_Requests
/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest /zh-CN/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest
/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest_in_IE6 /zh-CN/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest
/zh-CN/docs/Web/API/XMLHttpRequest/onreadystatechange /zh-CN/docs/Web/API/XMLHttpRequest/readystatechange_event
/zh-CN/docs/Web/API/XMLHttpRequestEventTarget/onabort /zh-CN/docs/Web/API/XMLHttpRequest/abort_event
/zh-CN/docs/Web/API/XMLHttpRequestEventTarget/onerror /zh-CN/docs/Web/API/XMLHttpRequest/error_event
Expand Down Expand Up @@ -2307,7 +2312,7 @@
/zh-CN/docs/Web/Guide/HTML/Tips_for_authoring_fast-loading_HTML_pages /zh-CN/docs/Learn/HTML/Howto/Author_fast-loading_HTML_pages
/zh-CN/docs/Web/Guide/HTML/Using_data_attributes /zh-CN/docs/Learn/HTML/Howto/Use_data_attributes
/zh-CN/docs/Web/Guide/Performance/Using_web_workers /zh-CN/docs/Web/API/Web_Workers_API/Using_web_workers
/zh-CN/docs/Web/Guide/Using_FormData_Objects /zh-CN/docs/Web/API/FormData/Using_FormData_Objects
/zh-CN/docs/Web/Guide/Using_FormData_Objects /zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects
/zh-CN/docs/Web/HTML/Applying_color /zh-CN/docs/Web/CSS/CSS_colors/Applying_color
/zh-CN/docs/Web/HTML/Attributes/自动完成属性 /zh-CN/docs/Web/HTML/Attributes/autocomplete
/zh-CN/docs/Web/HTML/Block-level_elements /zh-CN/docs/Glossary/Block-level_content
Expand Down Expand Up @@ -2440,6 +2445,7 @@
/zh-CN/docs/Web/JavaScript/Reference/Array/unshift /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/unshift
/zh-CN/docs/Web/JavaScript/Reference/Boolean /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Boolean
/zh-CN/docs/Web/JavaScript/Reference/Classes/Class_elements /zh-CN/docs/Web/JavaScript/Reference/Classes/Public_class_fields
/zh-CN/docs/Web/JavaScript/Reference/Classes/Private_class_fields /zh-CN/docs/Web/JavaScript/Reference/Classes/Private_properties
/zh-CN/docs/Web/JavaScript/Reference/Comments /zh-CN/docs/Web/JavaScript/Reference/Lexical_grammar#Comments
/zh-CN/docs/Web/JavaScript/Reference/Date /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date
/zh-CN/docs/Web/JavaScript/Reference/Date/getDate /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/getDate
Expand Down
134 changes: 67 additions & 67 deletions files/zh-cn/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -9784,20 +9784,6 @@
"modified": "2019-09-24T07:19:19.213Z",
"contributors": ["kameii", "sintrb"]
},
"Web/API/FormData/Using_FormData_Objects": {
"modified": "2020-06-22T06:10:24.580Z",
"contributors": [
"mountainsky13189",
"YogurtQ",
"Bayes",
"wuchunxu",
"weilong",
"banli17",
"tyw2015",
"TYPE-O56",
"ziv.zjc"
]
},
"Web/API/FormData/append": {
"modified": "2019-09-24T07:14:27.802Z",
"contributors": ["hayond", "stevobm", "wth"]
Expand Down Expand Up @@ -15867,58 +15853,6 @@
"Kook pudding"
]
},
"Web/API/XMLHttpRequest/HTML_in_XMLHttpRequest": {
"modified": "2019-03-23T22:09:30.230Z",
"contributors": ["wbamberg", "XiaoyaoChen"]
},
"Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data": {
"modified": "2020-08-05T21:51:20.534Z",
"contributors": [
"Ende93",
"knightyun",
"StudentMain",
"qyue",
"soraly",
"ziyunfei"
]
},
"Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests": {
"modified": "2019-03-18T21:11:50.541Z",
"contributors": [
"Reveur",
"zhangchen",
"Lby876176278",
"xgqfrms-GitHub",
"ziyunfei"
]
},
"Web/API/XMLHttpRequest/Using_XMLHttpRequest": {
"modified": "2020-10-15T21:19:05.341Z",
"contributors": [
"Aierklk",
"coder-git",
"knightyun",
"RainSlide",
"mynull",
"ZengYu",
"zhuruipeng",
"hongxu.Wei",
"banli17",
"ZZES_REN",
"makaria",
"hogaFarming",
"learnslagFeng",
"peterwang1996",
"Harvesty",
"Hawkeyes_Wind",
"lncwwn",
"FredWe",
"mengzyou",
"movever1",
"ziyunfei",
"ethertank"
]
},
"Web/API/XMLHttpRequest/XMLHttpRequest": {
"modified": "2020-05-20T05:15:18.208Z",
"contributors": ["RainSlide", "roberthow"]
Expand Down Expand Up @@ -16078,6 +16012,72 @@
"modified": "2020-10-15T21:34:13.586Z",
"contributors": ["RainSlide", "rubyisapm"]
},
"Web/API/XMLHttpRequest_API/HTML_in_XMLHttpRequest": {
"modified": "2019-03-23T22:09:30.230Z",
"contributors": ["wbamberg", "XiaoyaoChen"]
},
"Web/API/XMLHttpRequest_API/Sending_and_Receiving_Binary_Data": {
"modified": "2020-08-05T21:51:20.534Z",
"contributors": [
"Ende93",
"knightyun",
"StudentMain",
"qyue",
"soraly",
"ziyunfei"
]
},
"Web/API/XMLHttpRequest_API/Synchronous_and_Asynchronous_Requests": {
"modified": "2019-03-18T21:11:50.541Z",
"contributors": [
"Reveur",
"zhangchen",
"Lby876176278",
"xgqfrms-GitHub",
"ziyunfei"
]
},
"Web/API/XMLHttpRequest_API/Using_FormData_Objects": {
"modified": "2020-06-22T06:10:24.580Z",
"contributors": [
"mountainsky13189",
"YogurtQ",
"Bayes",
"wuchunxu",
"weilong",
"banli17",
"tyw2015",
"TYPE-O56",
"ziv.zjc"
]
},
"Web/API/XMLHttpRequest_API/Using_XMLHttpRequest": {
"modified": "2020-10-15T21:19:05.341Z",
"contributors": [
"Aierklk",
"coder-git",
"knightyun",
"RainSlide",
"mynull",
"ZengYu",
"zhuruipeng",
"hongxu.Wei",
"banli17",
"ZZES_REN",
"makaria",
"hogaFarming",
"learnslagFeng",
"peterwang1996",
"Harvesty",
"Hawkeyes_Wind",
"lncwwn",
"FredWe",
"mengzyou",
"movever1",
"ziyunfei",
"ethertank"
]
},
"Web/API/XMLSerializer": {
"modified": "2020-10-15T21:14:45.671Z",
"contributors": ["leeleee", "zhangchen", "ziyunfei", "teoli", "zchong1022"]
Expand Down Expand Up @@ -25083,7 +25083,7 @@
"bumaociyuan"
]
},
"Web/JavaScript/Reference/Classes/Private_class_fields": {
"Web/JavaScript/Reference/Classes/Private_properties": {
"modified": "2020-10-15T22:30:12.129Z",
"contributors": ["zhuangyin", "symant233", "wizard-intraining"]
},
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/glossary/synchronous/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ slug: Glossary/Synchronous
## 参见

- {{glossary("Asynchronous")}}
- 使用了 [XMLHttpRequest()](/zh-CN/docs/Web/API/XMLHttpRequest) {{glossary("API")}} 的[同步和异步请求](/zh-CN/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests)
- 使用了 [XMLHttpRequest()](/zh-CN/docs/Web/API/XMLHttpRequest) {{glossary("API")}} 的[同步和异步请求](/zh-CN/docs/Web/API/XMLHttpRequest_API/Synchronous_and_Asynchronous_Requests)
2 changes: 1 addition & 1 deletion files/zh-cn/glossary/xmlhttprequest/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ slug: Glossary/XMLHttpRequest
- 维基百科上的 [XMLHttpRequest](https://zh.wikipedia.org/wiki/XMLHttpRequest)
- [异步通信 vs. 同步通信](https://peoplesofttutorial.com/difference-between-synchronous-and-asynchronous-messaging/)
- {{domxref("XMLHttpRequest")}} 对象
- [MDN 上关于如何使用 XMLHttpRequest 的文档](/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest)
- [MDN 上关于如何使用 XMLHttpRequest 的文档](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest)
2 changes: 1 addition & 1 deletion files/zh-cn/learn/forms/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ slug: Learn/Forms
- [如何构建自定义表单控件](/zh-CN/docs/Learn/Forms/How_to_build_custom_form_controls)
- : 在某些情况下,可能出于样式或功能的原因,原生表单部件无法提供你所需要的东西。在这种情况下,你可能需要使用原生 HTML 构建自己的表单小部件。本文将讲述一个实例,说明你将如何做到这一点,以及在实际操作时需要注意的事项。
- [通过 JavaScript 发送表单](/zh-CN/docs/Learn/Forms/Sending_forms_through_JavaScript)
- : 本文将讨论如何使用表单来构建 HTTP 请求,并通过定制的 JavaScript 发送它,而不是标准的表单提交。它还说明了为什么要这么做,以及这样做的意义。(请参阅[使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)。)
- : 本文将讨论如何使用表单来构建 HTTP 请求,并通过定制的 JavaScript 发送它,而不是标准的表单提交。它还说明了为什么要这么做,以及这样做的意义。(请参阅[使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)。)
- [表单控件的 CSS 属性兼容性表](/zh-CN/docs/Learn/Forms/Property_compatibility_table_for_form_controls)
- : 最后一篇文章提供了一个方便的参考,以确定 CSS 属性与表单元素的兼容性关系。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ btn.addEventListener("click", () => {

{{domxref("FormData","FormData")}} 对象可以用来构建用于传输的表单数据,或是获取表单元素中的数据来管理它的发送方式。

该对象的使用详见[使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects),下面是两个示例:
该对象的使用详见[使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects),下面是两个示例:

#### 使用一个独立的 FormData 对象

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class Student extends Person {
}
```

在这个类的声明中,`#year` 是一个[私有数据属性](/zh-CN/docs/Web/JavaScript/Reference/Classes/Private_class_fields)。我们可以构造一个 `Student` 对象,然后在内部使用 `#year`,但如果在类的外部尝试访问 `#year`,浏览器将会抛出错误:
在这个类的声明中,`#year` 是一个[私有数据属性](/zh-CN/docs/Web/JavaScript/Reference/Classes/Private_properties)。我们可以构造一个 `Student` 对象,然后在内部使用 `#year`,但如果在类的外部尝试访问 `#year`,浏览器将会抛出错误:

```js
const summers = new Student("Summers", 2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,4 +571,4 @@ URL.revokeObjectURL(obj_url);
- {{DOMxRef("FileReader")}}
- {{DOMxRef("URL")}}
- {{DOMxRef("XMLHttpRequest")}}
- [使用 XMLHttpRequest](/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest)
- [使用 XMLHttpRequest](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest)
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/formdata/append/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ formData.append("userpic[]", myFileInput2.files[0], "chris2.jpg");

## 参见

- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)
- {{HTMLElement("Form")}}
4 changes: 2 additions & 2 deletions files/zh-cn/web/api/formdata/delete/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ formData.delete("username");
## 参见

- {{domxref("XMLHTTPRequest")}}
- [Using XMLHttpRequest](/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest)
- [Using FormData objects](/zh-CN/docs/DOM/XMLHttpRequest/FormData/Using_FormData_Objects)
- [使用 XMLHttpRequest](/zh-CN/docs/DOM/XMLHttpRequest_API/Using_XMLHttpRequest)
- [使用 FormData 对象](/zh-CN/docs/DOM/XMLHttpRequest/XMLHttpRequest_API/Using_FormData_Objects)
- {{HTMLElement("Form")}}
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/formdata/entries/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ key2, value2

## 参见

- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)
- {{HTMLElement("Form")}}
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/formdata/formdata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ formData = new FormData(myForm);

## 参见

- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)
- {{HTMLElement("Form")}}
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/formdata/get/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ formData.get("username"); // Returns "Chris"

## 参见

- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)
- {{HTMLElement("Form")}}
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/formdata/getall/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ formData.getAll("username"); // Returns ["Chris", "Bob"]

## 参见

- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)
- {{HTMLElement("Form")}}
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/formdata/has/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ formData.has("username"); // Returns true

## 参见

- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)
- {{HTMLElement("Form")}}
4 changes: 2 additions & 2 deletions files/zh-cn/web/api/formdata/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ slug: Web/API/FormData
## 参见

- {{domxref("XMLHTTPRequest")}}
- [Using XMLHttpRequest](/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest)
- [Using FormData objects](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 XMLHttpRequest](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest)
- [使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)
- {{HTMLElement("Form")}}
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/formdata/keys/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ key2

## 参见

- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)
- {{HTMLElement("Form")}}
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/formdata/set/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ formData.set("userpic", myFileInput.files[0], "chris.jpg");

## 参见

- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)
- {{HTMLElement("Form")}}
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/formdata/values/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ value2

## 参见

- [使用 FormData 对象](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)
- {{HTMLElement("Form")}}
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/history_api/example/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ slug: Web/API/History_API/Example

这是一个仅由三个页面组成的 AJAX 网站示例 (_first_page.php_, _second_page.php_ and _third_page.php_). 要查看其如何工作的,请创建以下文件 (或 git clone [https://github.com/giabao/mdn-ajax-nav-example.git](https://github.com/giabao/mdn-ajax-nav-example) ):

> **备注:** 为了在该机制中很好地整合{{HTMLElement("form")}}元素 , 请看一下这段 [Submitting forms and uploading files](/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest#Submitting_forms_and_uploading_files)。
> **备注:** 为了在该机制中很好地整合 {{HTMLElement("form")}} 元素 , 请看一下这段[提交表单和上传文件](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest#提交表单和上传文件)。

**first_page.php**:

Expand Down
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/htmlformelement/formdata_event/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ formElem.onformdata = (e) => {

{{Compat}}

## 另见
## 参见

- [`formdata` event](/zh-CN/docs/Web/API/HTMLFormElement/formdata_event)
- [`formdata` 事件](/zh-CN/docs/Web/API/HTMLFormElement/formdata_event)
- {{domxref("FormDataEvent")}}
- [Using FormData Objects](/zh-CN/docs/Web/API/FormData/Using_FormData_Objects)
- [使用 FormData 对象](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/htmlformelement/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ The following example shows how to submit a form in a [popup window](/zh-CN/docs

### Submitting forms and uploading files using `XMLHttpRequest`

If you want to know how to serialize and submit a form using the [`XMLHttpRequest`](/zh-CN/docs/DOM/XMLHttpRequest) API, please read [this paragraph](/zh-CN/docs/DOM/XMLHttpRequest/Using_XMLHttpRequest#Submitting_forms_and_uploading_files).
If you want to know how to serialize and submit a form using the [`XMLHttpRequest`](/zh-CN/docs/DOM/XMLHttpRequest) API, please read [this paragraph](/zh-CN/docs/DOM/XMLHttpRequest_API/Using_XMLHttpRequest#Submitting_forms_and_uploading_files).

## Specifications

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/xmlhttprequest/abort/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ if (OH_NOES_WE_NEED_TO_CANCEL_RIGHT_NOW_OR_ELSE) {

## 参见

- [使用 XMLHttpRequest](/zh-CN/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest)
- [使用 XMLHttpRequest](/zh-CN/docs/Web/API/XMLHttpRequest_API/Using_XMLHttpRequest)
Loading