aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn')
-rw-r--r--files/zh-cn/_redirects.txt4
-rw-r--r--files/zh-cn/_wikihistory.json48
-rw-r--r--files/zh-cn/conflicting/web/api/websocket/error_event/index.html (renamed from files/zh-cn/web/api/websocket/onerror/index.html)3
-rw-r--r--files/zh-cn/conflicting/web/api/websocket/message_event/index.html (renamed from files/zh-cn/web/api/websocket/onmessage/index.html)3
-rw-r--r--files/zh-cn/web/api/websocket/close_event/index.html (renamed from files/zh-cn/web/api/websocket/onclose/index.html)3
-rw-r--r--files/zh-cn/web/api/websocket/open_event/index.html (renamed from files/zh-cn/web/api/websocket/onopen/index.html)3
6 files changed, 36 insertions, 28 deletions
diff --git a/files/zh-cn/_redirects.txt b/files/zh-cn/_redirects.txt
index 7450d3a190..70c0330c9b 100644
--- a/files/zh-cn/_redirects.txt
+++ b/files/zh-cn/_redirects.txt
@@ -1515,6 +1515,10 @@
/zh-CN/docs/Web/API/WebGLRenderingContext/多边形偏移(polygonOffset) /zh-CN/docs/Web/API/WebGLRenderingContext/polygonOffset
/zh-CN/docs/Web/API/WebGL_API/Adding_2D_content_to_a_WebGL_context /zh-CN/docs/Web/API/WebGL_API/Tutorial/Adding_2D_content_to_a_WebGL_context
/zh-CN/docs/Web/API/WebGL_API/Getting_started_with_WebGL /zh-CN/docs/Web/API/WebGL_API/Tutorial/Getting_started_with_WebGL
+/zh-CN/docs/Web/API/WebSocket/onclose /zh-CN/docs/Web/API/WebSocket/close_event
+/zh-CN/docs/Web/API/WebSocket/onerror /zh-CN/docs/conflicting/Web/API/WebSocket/error_event
+/zh-CN/docs/Web/API/WebSocket/onmessage /zh-CN/docs/conflicting/Web/API/WebSocket/message_event
+/zh-CN/docs/Web/API/WebSocket/onopen /zh-CN/docs/Web/API/WebSocket/open_event
/zh-CN/docs/Web/API/WebSocket/二进制类型 /zh-CN/docs/Web/API/WebSocket/binaryType
/zh-CN/docs/Web/API/WebVR_API/WebVR_concepts /zh-CN/docs/Web/API/WebVR_API/Concepts
/zh-CN/docs/Web/API/Web_Audio_API/基于Web_Audio_API实现的音频可视化效果 /zh-CN/docs/Web/API/Web_Audio_API/Visualizations_with_Web_Audio_API
diff --git a/files/zh-cn/_wikihistory.json b/files/zh-cn/_wikihistory.json
index 48f41f997c..5b817efe66 100644
--- a/files/zh-cn/_wikihistory.json
+++ b/files/zh-cn/_wikihistory.json
@@ -22192,6 +22192,13 @@
"en20"
]
},
+ "Web/API/WebSocket/close_event": {
+ "modified": "2019-08-17T08:15:18.133Z",
+ "contributors": [
+ "lihuakkk",
+ "FlyingPig"
+ ]
+ },
"Web/API/WebSocket/error_event": {
"modified": "2020-10-15T22:32:26.989Z",
"contributors": [
@@ -22214,30 +22221,7 @@
"Firefox_mozilla"
]
},
- "Web/API/WebSocket/onclose": {
- "modified": "2019-08-17T08:15:18.133Z",
- "contributors": [
- "lihuakkk",
- "FlyingPig"
- ]
- },
- "Web/API/WebSocket/onerror": {
- "modified": "2020-10-15T22:12:36.891Z",
- "contributors": [
- "sntkwtjf",
- "Firefox_mozilla",
- "HIKALU-Z"
- ]
- },
- "Web/API/WebSocket/onmessage": {
- "modified": "2020-10-15T22:11:41.439Z",
- "contributors": [
- "hishark",
- "caslt",
- "Ray-Eldath"
- ]
- },
- "Web/API/WebSocket/onopen": {
+ "Web/API/WebSocket/open_event": {
"modified": "2020-10-15T22:12:40.029Z",
"contributors": [
"Mr.Chenzm",
@@ -47276,6 +47260,22 @@
"alayasix"
]
},
+ "conflicting/Web/API/WebSocket/error_event": {
+ "modified": "2020-10-15T22:12:36.891Z",
+ "contributors": [
+ "sntkwtjf",
+ "Firefox_mozilla",
+ "HIKALU-Z"
+ ]
+ },
+ "conflicting/Web/API/WebSocket/message_event": {
+ "modified": "2020-10-15T22:11:41.439Z",
+ "contributors": [
+ "hishark",
+ "caslt",
+ "Ray-Eldath"
+ ]
+ },
"conflicting/Web/API/Web_Storage_API": {
"modified": "2019-03-24T00:14:59.754Z",
"contributors": [
diff --git a/files/zh-cn/web/api/websocket/onerror/index.html b/files/zh-cn/conflicting/web/api/websocket/error_event/index.html
index 996ad55472..8cf8d972f4 100644
--- a/files/zh-cn/web/api/websocket/onerror/index.html
+++ b/files/zh-cn/conflicting/web/api/websocket/error_event/index.html
@@ -1,7 +1,8 @@
---
title: WebSocket.onerror
-slug: Web/API/WebSocket/onerror
+slug: conflicting/Web/API/WebSocket/error_event
translation_of: Web/API/WebSocket/onerror
+original_slug: Web/API/WebSocket/onerror
---
<p>{{APIRef("Web Sockets API")}}</p>
diff --git a/files/zh-cn/web/api/websocket/onmessage/index.html b/files/zh-cn/conflicting/web/api/websocket/message_event/index.html
index 4bdcb51039..ae8fa9c3bd 100644
--- a/files/zh-cn/web/api/websocket/onmessage/index.html
+++ b/files/zh-cn/conflicting/web/api/websocket/message_event/index.html
@@ -1,6 +1,6 @@
---
title: WebSocket.onmessage
-slug: Web/API/WebSocket/onmessage
+slug: conflicting/Web/API/WebSocket/message_event
tags:
- API
- Web API
@@ -8,6 +8,7 @@ tags:
- 参考
- 属性
translation_of: Web/API/WebSocket/onmessage
+original_slug: Web/API/WebSocket/onmessage
---
<p>{{APIRef("Web Sockets API")}}</p>
diff --git a/files/zh-cn/web/api/websocket/onclose/index.html b/files/zh-cn/web/api/websocket/close_event/index.html
index 0ed1b7ffe1..b168dace44 100644
--- a/files/zh-cn/web/api/websocket/onclose/index.html
+++ b/files/zh-cn/web/api/websocket/close_event/index.html
@@ -1,7 +1,8 @@
---
title: WebSocket.onclose
-slug: Web/API/WebSocket/onclose
+slug: Web/API/WebSocket/close_event
translation_of: Web/API/WebSocket/onclose
+original_slug: Web/API/WebSocket/onclose
---
<p>{{APIRef("Web Sockets API")}}</p>
diff --git a/files/zh-cn/web/api/websocket/onopen/index.html b/files/zh-cn/web/api/websocket/open_event/index.html
index 067c9057bc..a0d5e78dc7 100644
--- a/files/zh-cn/web/api/websocket/onopen/index.html
+++ b/files/zh-cn/web/api/websocket/open_event/index.html
@@ -1,7 +1,8 @@
---
title: WebSocket.onopen
-slug: Web/API/WebSocket/onopen
+slug: Web/API/WebSocket/open_event
translation_of: Web/API/WebSocket/onopen
+original_slug: Web/API/WebSocket/onopen
---
<p><strong><code>WebSocket.onopen</code></strong>属性定义一个事件处理程序,当{{domxref("WebSocket")}} 的连接状态{{domxref("WebSocket.readyState","readyState")}} 变为{{domxref("WebSocket.readyState","1")}}时调用;这意味着当前连接已经准备好发送和接受数据。这个事件处理程序通过 {{domxref("事件")}}(建立连接时)触发。</p>