Skip to content

Commit

Permalink
[zh-cn] sync translated content (mdn#23854)
Browse files Browse the repository at this point in the history
* zh-cn: sync translated content

* chore(http): delete "Basics of HTTP" page in favor of HTTP landing page

ref: mdn/content#35774

* zh-cn: resolve the global function `createImageBitmap()`

ref: mdn/content#35952

---------

Co-authored-by: Allo <[email protected]>
  • Loading branch information
2 people authored and sora32127 committed Oct 6, 2024
1 parent d907932 commit 9899ceb
Show file tree
Hide file tree
Showing 45 changed files with 392 additions and 296 deletions.
11 changes: 8 additions & 3 deletions files/zh-cn/_redirects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1903,7 +1903,7 @@
/zh-CN/docs/Web/API/WindowOrWorkerGlobalScope/caches /zh-CN/docs/Web/API/Window/caches
/zh-CN/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval /zh-CN/docs/Web/API/clearInterval
/zh-CN/docs/Web/API/WindowOrWorkerGlobalScope/clearTimeout /zh-CN/docs/Web/API/clearTimeout
/zh-CN/docs/Web/API/WindowOrWorkerGlobalScope/createImageBitmap /zh-CN/docs/Web/API/createImageBitmap
/zh-CN/docs/Web/API/WindowOrWorkerGlobalScope/createImageBitmap /zh-CN/docs/Web/API/Window/createImageBitmap
/zh-CN/docs/Web/API/WindowOrWorkerGlobalScope/crossOriginIsolated /zh-CN/docs/Web/API/Window/crossOriginIsolated
/zh-CN/docs/Web/API/WindowOrWorkerGlobalScope/fetch /zh-CN/docs/Web/API/Window/fetch
/zh-CN/docs/Web/API/WindowOrWorkerGlobalScope/indexedDB /zh-CN/docs/Web/API/Window/indexedDB
Expand Down Expand Up @@ -1961,6 +1961,7 @@
/zh-CN/docs/Web/API/console/timeStamp /zh-CN/docs/Web/API/console/timeStamp_static
/zh-CN/docs/Web/API/console/trace /zh-CN/docs/Web/API/console/trace_static
/zh-CN/docs/Web/API/console/warn /zh-CN/docs/Web/API/console/warn_static
/zh-CN/docs/Web/API/createImageBitmap /zh-CN/docs/Web/API/Window/createImageBitmap
/zh-CN/docs/Web/API/crossOriginIsolated /zh-CN/docs/Web/API/Window/crossOriginIsolated
/zh-CN/docs/Web/API/crypto_property /zh-CN/docs/Web/API/Window/crypto
/zh-CN/docs/Web/API/document.URL /zh-CN/docs/Web/API/Document/URL
Expand Down Expand Up @@ -2426,10 +2427,14 @@
/zh-CN/docs/Web/HTML/动作 /zh-CN/docs/Glossary/Speculative_parsing
/zh-CN/docs/Web/HTML/属性 /zh-CN/docs/Web/HTML/Attributes
/zh-CN/docs/Web/HTTP/Access_control_CORS /zh-CN/docs/Web/HTTP/CORS
/zh-CN/docs/Web/HTTP/Basics_of_HTTP /zh-CN/docs/Web/HTTP
/zh-CN/docs/Web/HTTP/Basics_of_HTTP/Choosing_between_www_and_non-www_URLs /zh-CN/docs/Web/URI/Authority/Choosing_between_www_and_non-www_URLs
/zh-CN/docs/Web/HTTP/Basics_of_HTTP/Data_URIs /zh-CN/docs/Web/URI/Schemes/data
/zh-CN/docs/Web/HTTP/Basics_of_HTTP/Data_URLs /zh-CN/docs/Web/URI/Schemes/data
/zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types /zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
/zh-CN/docs/Web/HTTP/Basics_of_HTTP/Evolution_of_HTTP /zh-CN/docs/Web/HTTP/Evolution_of_HTTP
/zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types /zh-CN/docs/Web/HTTP/MIME_types
/zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types /zh-CN/docs/Web/HTTP/MIME_types/Common_types
/zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types /zh-CN/docs/Web/HTTP/MIME_types/Common_types
/zh-CN/docs/Web/HTTP/Basics_of_HTTP/选择_www_或非_www_URL_作为域名 /zh-CN/docs/Web/URI/Authority/Choosing_between_www_and_non-www_URLs
/zh-CN/docs/Web/HTTP/CORS/Errors/CORS错误允许凭证 /zh-CN/docs/Web/HTTP/CORS/Errors/CORSMIssingAllowCredentials
/zh-CN/docs/Web/HTTP/Caching_FAQ /zh-CN/docs/Web/HTTP/Caching
Expand Down Expand Up @@ -2465,7 +2470,7 @@
/zh-CN/docs/Web/HTTP/Link_prefetching_FAQ /zh-CN/docs/Glossary/Prefetch
/zh-CN/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_(PAC)_file /zh-CN/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file
/zh-CN/docs/Web/HTTP/Public_Key_Pinning /zh-CN/docs/Web/Security/Certificate_Transparency
/zh-CN/docs/Web/HTTP/Resources_and_URIs /zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types
/zh-CN/docs/Web/HTTP/Resources_and_URIs /zh-CN/docs/Web/HTTP/MIME_types
/zh-CN/docs/Web/HTTP/Response_codes /zh-CN/docs/Web/HTTP/Status
/zh-CN/docs/Web/HTTP/Response_codes/100 /zh-CN/docs/Web/HTTP/Status/100
/zh-CN/docs/Web/HTTP/Response_codes/204 /zh-CN/docs/Web/HTTP/Status/204
Expand Down
106 changes: 47 additions & 59 deletions files/zh-cn/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -15180,6 +15180,10 @@
"modified": "2020-10-15T22:30:15.212Z",
"contributors": ["Jee"]
},
"Web/API/Window/createImageBitmap": {
"modified": "2019-03-18T20:44:01.174Z",
"contributors": ["fanerge", "varcat"]
},
"Web/API/Window/crossOriginIsolated": {
"modified": "2020-10-15T22:26:03.129Z",
"contributors": ["Fulgrim"]
Expand Down Expand Up @@ -16267,10 +16271,6 @@
"modified": "2019-03-23T22:12:15.122Z",
"contributors": ["pluwen", "choukin"]
},
"Web/API/createImageBitmap": {
"modified": "2019-03-18T20:44:01.174Z",
"contributors": ["fanerge", "varcat"]
},
"Web/API/notification": {
"modified": "2020-09-28T00:03:47.900Z",
"contributors": [
Expand Down Expand Up @@ -22375,61 +22375,6 @@
"thomastao0215"
]
},
"Web/HTTP/Basics_of_HTTP": {
"modified": "2020-05-07T23:19:31.676Z",
"contributors": [
"Filon",
"HardcorePhysician",
"Yayure",
"695919451",
"BobGreen",
"magiclyde",
"cissoid"
]
},
"Web/HTTP/Basics_of_HTTP/Evolution_of_HTTP": {
"modified": "2020-02-20T03:41:08.272Z",
"contributors": [
"Babyfaceqian",
"XFJGitHub",
"lc-soft",
"BobGreen",
"enjolras1205",
"zihengCat",
"GuoShuai",
"Haruhi",
"huangchanghuan",
"keifergu",
"JsonLi",
"WeijieZhu"
]
},
"Web/HTTP/Basics_of_HTTP/MIME_types": {
"modified": "2020-11-04T00:16:29.009Z",
"contributors": [
"lujjjh",
"andysongs",
"rascalquan",
"BobGreen",
"NewbieAndy",
"zhangchen",
"xgqfrms-GitHub",
"w11th",
"YuriTu"
]
},
"Web/HTTP/Basics_of_HTTP/MIME_types/Common_types": {
"modified": "2020-02-28T13:11:23.222Z",
"contributors": [
"chrisdavidmills",
"RainSlide",
"qq58553442",
"sam-dingkang",
"xgqfrms-GitHub",
"choury",
"pasturn"
]
},
"Web/HTTP/Browser_detection_using_the_user_agent": {
"modified": "2019-03-23T22:26:23.825Z",
"contributors": ["xgqfrms-GitHub", "konrumi", "Leogh", "jianyi1995"]
Expand Down Expand Up @@ -22655,6 +22600,23 @@
"charlie"
]
},
"Web/HTTP/Evolution_of_HTTP": {
"modified": "2020-02-20T03:41:08.272Z",
"contributors": [
"Babyfaceqian",
"XFJGitHub",
"lc-soft",
"BobGreen",
"enjolras1205",
"zihengCat",
"GuoShuai",
"Haruhi",
"huangchanghuan",
"keifergu",
"JsonLi",
"WeijieZhu"
]
},
"Web/HTTP/Headers": {
"modified": "2020-05-20T02:33:50.716Z",
"contributors": [
Expand Down Expand Up @@ -23230,6 +23192,32 @@
"xgqfrms-GitHub"
]
},
"Web/HTTP/MIME_types": {
"modified": "2020-11-04T00:16:29.009Z",
"contributors": [
"lujjjh",
"andysongs",
"rascalquan",
"BobGreen",
"NewbieAndy",
"zhangchen",
"xgqfrms-GitHub",
"w11th",
"YuriTu"
]
},
"Web/HTTP/MIME_types/Common_types": {
"modified": "2020-02-28T13:11:23.222Z",
"contributors": [
"chrisdavidmills",
"RainSlide",
"qq58553442",
"sam-dingkang",
"xgqfrms-GitHub",
"choury",
"pasturn"
]
},
"Web/HTTP/Messages": {
"modified": "2020-04-19T05:44:17.609Z",
"contributors": [
Expand Down
6 changes: 3 additions & 3 deletions files/zh-cn/glossary/http_2/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
title: HTTP/2
slug: Glossary/HTTP_2
l10n:
sourceCommit: ada5fa5ef15eadd44b549ecf906423b4a2092f34
sourceCommit: f75b2c86ae4168e59416aed4c7121f222afc201d
---

{{GlossarySidebar}}

**HTTP/2**[HTTP 网络协议](/zh-CN/docs/Web/HTTP/Basics_of_HTTP)的一个主要版本。
**HTTP/2**[HTTP 网络协议](/zh-CN/docs/Web/HTTP)的一个主要版本。

它的主要目标是通过启用完整的请求和响应多路复用来降低{{glossary("latency", "延迟")}},通过有效压缩 HTTP 标头字段来最小化协议开销,增加对请求优先级和服务器推送的支持。
它的主要目标是通过启用完整的请求和响应多路复用来降低{{glossary("latency", "延迟")}}和队头阻塞,通过有效压缩 HTTP 标头字段来最小化协议开销,增加对请求优先级和服务器推送的支持。

HTTP/2 不会修改 HTTP 协议的语义。HTTP 1.1 中的所有核心概念(例如 HTTP 方法、状态码、URI 和标头)都得以保留。而是修改了 HTTP/2 数据在客户端和服务器之间的格式(帧)和传输方式,这两者都管理整个过程,并在新的框架层内隐藏了应用程序的复杂性。所以,所有现有的应用程序都可以不经修改地交付。

Expand Down
16 changes: 8 additions & 8 deletions files/zh-cn/glossary/http_3/index.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
title: HTTP/3
slug: Glossary/HTTP_3
l10n:
sourceCommit: f75b2c86ae4168e59416aed4c7121f222afc201d
---

{{GlossarySidebar}}

**HTTP/3**是继{{glossary("HTTP 2", "HTTP/2")}}即将到来的[HTTP 网络协议的](/zh-CN/docs/Web/HTTP/Basics_of_HTTP)主要修订版。HTTP/3 的要点是它使用名为 QUIC 的新{{glossary("UDP")}}协议代替{{glossary("TCP")}}
**HTTP/3** 是继 {{glossary("HTTP 2", "HTTP/2")}} 之后的 [HTTP 网络协议](/zh-CN/docs/Web/HTTP)的主要修订版

## 参见

- 基础知识
HTTP/3 的最大不同之处在于它使用了一种名为 QUIC 的协议(基于 {{glossary("UDP")}} 而不是 {{glossary("TCP")}})。

- [HTTP on MDN](/zh-CN/docs/Web/HTTP)
- [HTTP/3](https://zh.wikipedia.org/wiki/HTTP/3)

- 词汇表
## 参见

- [HTTP 文档](/zh-CN/docs/Web/HTTP)
- 维基百科上的 [HTTP/3](https://zh.wikipedia.org/wiki/HTTP/3)
- 相关术语:
- {{glossary("HTTP")}}
- {{glossary("HTTP 2")}}
- {{glossary("Latency")}}
2 changes: 1 addition & 1 deletion files/zh-cn/glossary/lossy_compression/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ l10n:

**有损压缩**,又称为不可逆压缩,是一种数据压缩方法,它使用不精确的近似值和部分数据丢弃来表示内容。简单来说:有损压缩导致原始文件中的数据丢失,可能导致质量下降。这种压缩过程是不可逆的;一旦对内容进行了有损压缩,就无法将内容恢复到原始状态。因此,经过有损压缩的内容通常不应再进一步编辑。

有损压缩在诸如 {{glossary("JPEG")}}、{{glossary("WebP")}} 等图像格式以及音频和视频格式(如 [MP3、MP4、H.264 等](/zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types))中被广泛使用。像 {{glossary("WebP")}} 这样的压缩方法可以根据压缩级别或在编码过程中使用的选项进行[无损和有损压缩](https://developers.google.com/speed/webp/docs/compression)
有损压缩在诸如 {{glossary("JPEG")}}、{{glossary("WebP")}} 等图像格式以及音频和视频格式(如 [MP3、MP4、H.264 等](/zh-CN/docs/Web/HTTP/MIME_types/Common_types))中被广泛使用。像 {{glossary("WebP")}} 这样的压缩方法可以根据压缩级别或在编码过程中使用的选项进行[无损和有损压缩](https://developers.google.com/speed/webp/docs/compression)

![有损压缩的图像](2019-11-18.png)

Expand Down
8 changes: 4 additions & 4 deletions files/zh-cn/glossary/mime_type/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
title: MIME 类型
slug: Glossary/MIME_type
l10n:
sourceCommit: ada5fa5ef15eadd44b549ecf906423b4a2092f34
sourceCommit: f75b2c86ae4168e59416aed4c7121f222afc201d
---

{{GlossarySidebar}}

**MIME 类型**(现在正式地称作“媒体类型”,但有时也被称作“内容类型”)是指示文件类型的会与文件同时发送出去的字符串,描述了内容的格式(例如,一个声音文件可能被标记为 `audio/ogg` ,一个图像文件可能是 `image/png`)。
**MIME 类型**(现在正式地称作“媒体类型”,但有时也被称作“内容类型”)是指示文件类型的会与文件同时发送出去的字符串,描述了内容的格式(例如,一个声音文件可能被标记为 `audio/ogg`,一个图像文件可能是 `image/png`)。

它与传统 Windows 上的文件扩展名有相同目的。这个术语的名字源于最初用于电子邮件的 {{glossary("mime","MIME")}} 标准。

Expand All @@ -16,6 +16,6 @@ l10n:
- 维基百科上的[互联网媒体类型](https://zh.wikipedia.org/wiki/互联网媒体类型)
- [MIME 类型列表](https://www.iana.org/assignments/media-types/media-types.xhtml)
- [正确配置服务器 MIME 类型](/zh-CN/docs/Learn/Server-side/Configuring_server_MIME_types)
- 有关在 Web 环境中使用 [MIME 类型](/zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types)的详细信息。
- [MIME 类型的不完整列表](/zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types)
- 有关在 Web 环境中使用 [MIME 类型](/zh-CN/docs/Web/HTTP/MIME_types)的详细信息。
- [MIME 类型的不完整列表](/zh-CN/docs/Web/HTTP/MIME_types/Common_types)
- [MediaRecorder.mimeType](/zh-CN/docs/Web/API/MediaRecorder/mimeType)
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ slug: Learn/Forms/Sending_and_retrieving_form_data

本文将讨论当用户提交表单时发生了什么——数据去了哪,以及当它到达时该如何处理?我们还研究了与发送表单数据相关的一些安全问题。

<table class="learn-box standard-table">
<table>
<tbody>
<tr>
<th scope="row">前提:</th>
Expand All @@ -16,7 +16,7 @@ slug: Learn/Forms/Sending_and_retrieving_form_data
基本计算机素养,对<a
href="/zh-CN/docs/Learn/HTML/Introduction_to_HTML"
>HTML 的理解</a
>,对<a href="/zh-CN/docs/Web/HTTP/Basics_of_HTTP">HTTP</a> 和<a
>,对<a href="/zh-CN/docs/Web/HTTP">HTTP</a> 和<a
href="/zh-CN/docs/Learn/Server-side/First_steps"
>服务器端编程</a
>的基础知识。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ _唯一不变的就是变化。_

### HTTP

超文本传输协议(Hypertext Transfer Protocol,[HTTP](/zh-CN/docs/Web/HTTP/Basics_of_HTTP)),它允许 Web 浏览器与 Web 服务器(存储网站的位置)进行通信。典型的通信就像这样
超文本传输协议(Hypertext Transfer Protocol,[HTTP](/zh-CN/docs/Web/HTTP)),它允许 Web 浏览器与 Web 服务器(存储网站的位置)进行通信。典型的通信就像这样

```plain
"你好 Web 服务器。你可以给我用于渲染 bbc.co.uk 的文件吗?"
Expand Down
4 changes: 2 additions & 2 deletions files/zh-cn/mozilla/firefox/releases/65/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ _无变化。_
#### Service workers

- The {{domxref("Response.redirect()")}} method now correctly throws a `TypeError` if a non-valid URL is specified as the first parameter ([Firefox bug 1503276](https://bugzil.la/1503276)).
- The {{domxref("ServiceWorkerContainer.register()")}} and {{domxref("WorkerGlobalScope.importScripts()")}} (when used by a service worker) methods will now accept any files with a valid [JavaScript MIME type](/zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types#JavaScript_types) ([Firefox bug 1354577](https://bugzil.la/1354577)).
- The {{domxref("ServiceWorkerContainer.register()")}} and {{domxref("WorkerGlobalScope.importScripts()")}} (when used by a service worker) methods will now accept any files with a valid [JavaScript MIME type](/zh-CN/docs/Web/HTTP/MIME_types#textjavascript) ([Firefox bug 1354577](https://bugzil.la/1354577)).

#### Media, Web Audio, 和 WebRTC
#### MediaWeb Audio 和 WebRTC

- 增加了对 [WebP](/zh-CN/docs/Glossary/webp) Google 压缩图像文件的支持 ([bug 1294490](https://bugzilla.mozilla.org/show_bug.cgi?id=1294490)) 。

Expand Down
77 changes: 0 additions & 77 deletions files/zh-cn/web/api/createimagebitmap/index.md

This file was deleted.

4 changes: 2 additions & 2 deletions files/zh-cn/web/api/datatransferitem/type/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: DataTransferItem:type 属性
slug: Web/API/DataTransferItem/type
l10n:
sourceCommit: b5583a21df2aeaebddd7e0eeb58ff690b013546b
sourceCommit: f75b2c86ae4168e59416aed4c7121f222afc201d
---

{{APIRef("HTML Drag and Drop API")}}
Expand Down Expand Up @@ -59,4 +59,4 @@ function dropHandler(ev) {
## 参见

- {{domxref("DataTransfer.types()")}}
- [常见 MIME 类型列表](/zh-CN/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types)
- [常见 MIME 类型列表](/zh-CN/docs/Web/HTTP/MIME_types/Common_types)
Loading

0 comments on commit 9899ceb

Please sign in to comment.