aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/websockets_api/writing_websocket_client_applications
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/websockets_api/writing_websocket_client_applications')
-rw-r--r--files/zh-cn/web/api/websockets_api/writing_websocket_client_applications/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/api/websockets_api/writing_websocket_client_applications/index.html b/files/zh-cn/web/api/websockets_api/writing_websocket_client_applications/index.html
index c5fefb2336..16ca1dcc5c 100644
--- a/files/zh-cn/web/api/websockets_api/writing_websocket_client_applications/index.html
+++ b/files/zh-cn/web/api/websockets_api/writing_websocket_client_applications/index.html
@@ -16,9 +16,9 @@ translation_of: Web/API/WebSockets_API/Writing_WebSocket_client_applications
<h2 id="创建_WebSocket_对象">创建 WebSocket 对象</h2>
-<p>为了使用 WebSocket 协议通信,你需要创建一个 <a href="/en/WebSockets/WebSockets_reference/WebSocket" title="en/WebSockets/WebSockets reference/WebSocket"><code>WebSocket</code></a> 对象;这将会自动地尝试建立与服务器的连接。</p>
+<p>为了使用 WebSocket 协议通信,你需要创建一个 <a href="/en/WebSockets/WebSockets_reference/WebSocket" title="en/WebSockets/WebSockets reference/WebSocket"><code>WebSocket</code></a> 对象;这将会自动地尝试建立与服务器的连接。</p>
-<p>WebSocket 构造函数接受一个必要参数和一个可选参数:</p>
+<p>WebSocket 构造函数接受一个必要参数和一个可选参数:</p>
<pre class="syntaxbox">WebSocket WebSocket(
  in DOMString url,
@@ -118,7 +118,7 @@ function sendText() {
<h3 id="接受与解析_JSON_对象">接受与解析 JSON 对象</h3>
-<p>考虑在 {{ anch("Using JSON to transmit objects") }}中提到的聊天应用客户端。客户端会收到各种类型的数据包,比如:</p>
+<p>考虑在 <a href="#使用_json_发送对象">使用 JSON 发送对象</a>中提到的聊天应用客户端。客户端会收到各种类型的数据包,比如:</p>
<ul>
<li>登陆握手</li>