aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/worker/index.html
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-05-28 12:05:52 -0700
committerGitHub <noreply@github.com>2021-05-28 12:05:52 -0700
commit220a7d23b0755acc06146c1262aa09ba22d6e3b1 (patch)
tree50a6ffafe663dc65f1a0f8816862d60e7ce23a33 /files/zh-cn/web/api/worker/index.html
parent2958ec7e85c9a1182cd81728e3705948a2c39d71 (diff)
downloadtranslated-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/worker/index.html')
-rw-r--r--files/zh-cn/web/api/worker/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/worker/index.html b/files/zh-cn/web/api/worker/index.html
index d374ebbe48..915aceb681 100644
--- a/files/zh-cn/web/api/worker/index.html
+++ b/files/zh-cn/web/api/worker/index.html
@@ -37,7 +37,7 @@ translation_of: Web/API/Worker
<dt>{{domxref("Worker.onmessage")}}</dt>
<dd>当{{domxref("MessageEvent")}}类型的事件冒泡到 worker 时,事件监听函数 {{ domxref("EventListener") }} 被调用.  例如,一个消息通过 {{domxref("DedicatedWorkerGlobalScope.postMessage")}},从执行者发送到父页面对象,消息保存在事件对象的 {{domxref("MessageEvent.data", "data")}} 属性中.</dd>
<dt>{{domxref("Worker.onmessageerror")}}</dt>
- <dd>当{{event("messageerror")}} 类型的事件发生时,对应的{{event("Event_handlers")}} 代码被调用。</dd>
+ <dd>当{{event("messageerror")}} 类型的事件发生时,对应的{{domxref("EventHandler")}} 代码被调用。</dd>
</dl>
<h2 id="方法">方法</h2>