aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/eventsource/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/eventsource/index.html')
-rw-r--r--files/zh-cn/web/api/eventsource/index.html12
1 files changed, 6 insertions, 6 deletions
diff --git a/files/zh-cn/web/api/eventsource/index.html b/files/zh-cn/web/api/eventsource/index.html
index 55a81c56ef..ff7604c47d 100644
--- a/files/zh-cn/web/api/eventsource/index.html
+++ b/files/zh-cn/web/api/eventsource/index.html
@@ -29,11 +29,11 @@ original_slug: Server-sent_events/EventSource
<dl>
<dt>{{domxref("EventSource.onerror")}}</dt>
- <dd>是一个 {{domxref("EventHandler")}},当发生错误时被调用,并且在此对象上派发 {{event("error")}} 事件。</dd>
+ <dd>是一个 {{event("Event_handlers")}},当发生错误时被调用,并且在此对象上派发 {{event("error")}} 事件。</dd>
<dt>{{domxref("EventSource.onmessage")}}</dt>
- <dd>是一个 {{domxref("EventHandler")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。</dd>
+ <dd>是一个 {{event("Event_handlers")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。</dd>
<dt>{{domxref("EventSource.onopen")}}</dt>
- <dd>是一个 {{domxref("EventHandler")}},当收到一个 {{event(" open ")}} 事件,即连接刚打开时被调用。</dd>
+ <dd>是一个 {{event("Event_handlers")}},当收到一个 {{event(" open ")}} 事件,即连接刚打开时被调用。</dd>
<dt>{{domxref("EventSource.readyState")}} {{readonlyinline}}</dt>
<dd>一个 <code>unsigned </code> <code> short</code> 值,代表连接状态。可能值是 <code>CONNECTING</code> (<code>0</code>), <code>OPEN</code> (<code>1</code>), 或者 <code>CLOSED</code> (<code>2</code>)。</dd>
<dt>{{domxref("EventSource.url")}} {{readonlyinline}}</dt>
@@ -44,11 +44,11 @@ original_slug: Server-sent_events/EventSource
<dl>
<dt>{{domxref("EventSource.onerror")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} called when an error occurs and the {{domxref("EventSource/error_event", "error")}} event is dispatched on an <code>EventSource</code> object.</dd>
+ <dd>Is an {{event("Event_handlers")}} called when an error occurs and the {{domxref("EventSource/error_event", "error")}} event is dispatched on an <code>EventSource</code> object.</dd>
<dt>{{domxref("EventSource.onmessage")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} called when a {{domxref("EventSource/message_event", "message")}} event is received, that is when a message is coming from the source.</dd>
+ <dd>Is an {{event("Event_handlers")}} called when a {{domxref("EventSource/message_event", "message")}} event is received, that is when a message is coming from the source.</dd>
<dt>{{domxref("EventSource.onopen")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} called when an {{domxref("EventSource/open_event", "open")}} event is received, that is when the connection was just opened.</dd>
+ <dd>Is an {{event("Event_handlers")}} called when an {{domxref("EventSource/open_event", "open")}} event is received, that is when the connection was just opened.</dd>
</dl>
<h2 id="方法">方法</h2>