diff options
author | Ryan Johnson <rjohnson@mozilla.com> | 2021-05-28 12:05:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-28 12:05:52 -0700 |
commit | 220a7d23b0755acc06146c1262aa09ba22d6e3b1 (patch) | |
tree | 50a6ffafe663dc65f1a0f8816862d60e7ce23a33 /files/zh-cn/web/api/eventsource | |
parent | 2958ec7e85c9a1182cd81728e3705948a2c39d71 (diff) | |
download | translated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.tar.gz translated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.tar.bz2 translated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.zip |
Revert "replace some domxref macro calls with event macro calls (#1016)" (#1017)
This reverts commit 2958ec7e85c9a1182cd81728e3705948a2c39d71.
Diffstat (limited to 'files/zh-cn/web/api/eventsource')
-rw-r--r-- | files/zh-cn/web/api/eventsource/index.html | 12 | ||||
-rw-r--r-- | files/zh-cn/web/api/eventsource/onerror/index.html | 2 | ||||
-rw-r--r-- | files/zh-cn/web/api/eventsource/onopen/index.html | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/files/zh-cn/web/api/eventsource/index.html b/files/zh-cn/web/api/eventsource/index.html index ff7604c47d..55a81c56ef 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>是一个 {{event("Event_handlers")}},当发生错误时被调用,并且在此对象上派发 {{event("error")}} 事件。</dd> + <dd>是一个 {{domxref("EventHandler")}},当发生错误时被调用,并且在此对象上派发 {{event("error")}} 事件。</dd> <dt>{{domxref("EventSource.onmessage")}}</dt> - <dd>是一个 {{event("Event_handlers")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。</dd> + <dd>是一个 {{domxref("EventHandler")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。</dd> <dt>{{domxref("EventSource.onopen")}}</dt> - <dd>是一个 {{event("Event_handlers")}},当收到一个 {{event(" open ")}} 事件,即连接刚打开时被调用。</dd> + <dd>是一个 {{domxref("EventHandler")}},当收到一个 {{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 {{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> + <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> <dt>{{domxref("EventSource.onmessage")}}</dt> - <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> + <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> <dt>{{domxref("EventSource.onopen")}}</dt> - <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> + <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> </dl> <h2 id="方法">方法</h2> diff --git a/files/zh-cn/web/api/eventsource/onerror/index.html b/files/zh-cn/web/api/eventsource/onerror/index.html index 2cef28af42..dbc9dc3e2c 100644 --- a/files/zh-cn/web/api/eventsource/onerror/index.html +++ b/files/zh-cn/web/api/eventsource/onerror/index.html @@ -9,7 +9,7 @@ original_slug: Server-sent_events/EventSource/onerror <div> </div> -<p>{{domxref("EventSource")}} 的属性 <code><strong>onerror</strong></code> 是当发生错误且这个错误事件({{event("error")}} )被EventSource触发时调用的一个事件处理函数({{event("Event_handlers")}})</p> +<p>{{domxref("EventSource")}} 的属性 <code><strong>onerror</strong></code> 是当发生错误且这个错误事件({{event("error")}} )被EventSource触发时调用的一个事件处理函数({{domxref("EventHandler")}})</p> <h2 id="语法">语法</h2> diff --git a/files/zh-cn/web/api/eventsource/onopen/index.html b/files/zh-cn/web/api/eventsource/onopen/index.html index 1d0e698a9c..9a4668264a 100644 --- a/files/zh-cn/web/api/eventsource/onopen/index.html +++ b/files/zh-cn/web/api/eventsource/onopen/index.html @@ -10,7 +10,7 @@ original_slug: Server-sent_events/EventSource/onopen --- <div>{{APIRef('WebSockets API')}}</div> -<p>{{domxref("EventSource")}}接口的 <code><strong>onopen</strong></code> 属性是一个 {{event("Event_handlers")}} ,它在收到{{event("open")}} 事件时被调用,在那时,连接刚被打开。</p> +<p>{{domxref("EventSource")}}接口的 <code><strong>onopen</strong></code> 属性是一个 {{domxref("EventHandler")}} ,它在收到{{event("open")}} 事件时被调用,在那时,连接刚被打开。</p> <h2 id="语法">语法</h2> |