aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/websocket/onerror
diff options
context:
space:
mode:
authorMDN <actions@users.noreply.github.com>2021-12-16 00:52:08 +0000
committerMDN <actions@users.noreply.github.com>2021-12-16 00:52:08 +0000
commit9b97f9f4a1f580cbf582fb4bebabbccaab8e5dda (patch)
tree513e8e35a07a3fd1dc45a5415425fd3780075d51 /files/zh-cn/web/api/websocket/onerror
parent7f7c1b96a524c16de813516cc1b7ed3b773ae7ad (diff)
downloadtranslated-content-9b97f9f4a1f580cbf582fb4bebabbccaab8e5dda.tar.gz
translated-content-9b97f9f4a1f580cbf582fb4bebabbccaab8e5dda.tar.bz2
translated-content-9b97f9f4a1f580cbf582fb4bebabbccaab8e5dda.zip
[CRON] sync translated content
Diffstat (limited to 'files/zh-cn/web/api/websocket/onerror')
-rw-r--r--files/zh-cn/web/api/websocket/onerror/index.html45
1 files changed, 0 insertions, 45 deletions
diff --git a/files/zh-cn/web/api/websocket/onerror/index.html b/files/zh-cn/web/api/websocket/onerror/index.html
deleted file mode 100644
index 996ad55472..0000000000
--- a/files/zh-cn/web/api/websocket/onerror/index.html
+++ /dev/null
@@ -1,45 +0,0 @@
----
-title: WebSocket.onerror
-slug: Web/API/WebSocket/onerror
-translation_of: Web/API/WebSocket/onerror
----
-<p>{{APIRef("Web Sockets API")}}</p>
-
-<p>The <strong><code>WebSocket.onerror</code></strong> property returns the event listener to be called when an error occurs. This is a simple event named "error".</p>
-
-<p>在 <strong><code>WebSocket.onerror </code></strong>属性中,你可以定义一个发生错误时执行的回调函数,此事件的事件名为"error"</p>
-
-<h2 id="语法">语法</h2>
-
-<pre class="syntaxbox"><em>WebSocket</em>.onerror = function(event) {
- console.error("WebSocket error observed:", event);
-};</pre>
-
-<h2 id="值">值</h2>
-
-<p>An {{domxref("EventListener")}}.</p>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', '#handler-websocket-onerror', 'WebSocket: onerror')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td>Initial definition</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容性">浏览器兼容性</h2>
-
-
-
-<p>{{Compat("api.WebSocket.onerror")}}</p>