aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/eventsource
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-05-28 12:36:36 -0700
committerGitHub <noreply@github.com>2021-05-28 12:36:36 -0700
commit05a7219ba9605649cb6daa281e26209eaa73adf0 (patch)
tree63c9443b214d52257ff4ef5546f9e70c8b7365cd /files/zh-cn/web/api/eventsource
parent220a7d23b0755acc06146c1262aa09ba22d6e3b1 (diff)
downloadtranslated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.tar.gz
translated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.tar.bz2
translated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.zip
fix MacroWrongXRefError flaws for some domxref calls (#1018)
Diffstat (limited to 'files/zh-cn/web/api/eventsource')
-rw-r--r--files/zh-cn/web/api/eventsource/index.html12
-rw-r--r--files/zh-cn/web/api/eventsource/onerror/index.html2
-rw-r--r--files/zh-cn/web/api/eventsource/onopen/index.html2
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 55a81c56ef..742c13bf3a 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 handler")}},当发生错误时被调用,并且在此对象上派发 {{event("error")}} 事件。</dd>
<dt>{{domxref("EventSource.onmessage")}}</dt>
- <dd>是一个 {{domxref("EventHandler")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。</dd>
+ <dd>是一个 {{event("Event_handlers", "event handler")}},当收到一个 {{event("message")}} 事件,即消息来自源头时被调用。</dd>
<dt>{{domxref("EventSource.onopen")}}</dt>
- <dd>是一个 {{domxref("EventHandler")}},当收到一个 {{event(" open ")}} 事件,即连接刚打开时被调用。</dd>
+ <dd>是一个 {{event("Event_handlers", "event handler")}},当收到一个 {{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", "event handler")}} 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", "event handler")}} 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", "event handler")}} 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 dbc9dc3e2c..c7ab46f363 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触发时调用的一个事件处理函数({{domxref("EventHandler")}})</p>
+<p>{{domxref("EventSource")}} 的属性 <code><strong>onerror</strong></code> 是当发生错误且这个错误事件({{event("error")}} )被EventSource触发时调用的一个事件处理函数({{event("Event_handlers", "event handler")}})</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 9a4668264a..d7b087d023 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> 属性是一个 {{domxref("EventHandler")}} ,它在收到{{event("open")}} 事件时被调用,在那时,连接刚被打开。</p>
+<p>{{domxref("EventSource")}}接口的 <code><strong>onopen</strong></code> 属性是一个 {{event("Event_handlers", "event handler")}} ,它在收到{{event("open")}} 事件时被调用,在那时,连接刚被打开。</p>
<h2 id="语法">语法</h2>