From 2958ec7e85c9a1182cd81728e3705948a2c39d71 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Fri, 28 May 2021 11:58:24 -0700 Subject: replace some domxref macro calls with event macro calls (#1016) --- files/zh-cn/web/api/dedicatedworkerglobalscope/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'files/zh-cn/web/api/dedicatedworkerglobalscope') diff --git a/files/zh-cn/web/api/dedicatedworkerglobalscope/index.html b/files/zh-cn/web/api/dedicatedworkerglobalscope/index.html index 79044ba3cb..e6acb236ac 100644 --- a/files/zh-cn/web/api/dedicatedworkerglobalscope/index.html +++ b/files/zh-cn/web/api/dedicatedworkerglobalscope/index.html @@ -46,9 +46,9 @@ translation_of: Web/API/DedicatedWorkerGlobalScope
{{domxref("DedicatedWorkerGlobalScope.onmessage")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("message")}} event is raised. These events are of type {{domxref("MessageEvent")}} and will be called when the worker receives a message from the document that started it (i.e. from the {{domxref("Worker.postMessage")}} method.)
+
Is an {{event("Event_handlers")}} representing the code to be called when the {{event("message")}} event is raised. These events are of type {{domxref("MessageEvent")}} and will be called when the worker receives a message from the document that started it (i.e. from the {{domxref("Worker.postMessage")}} method.)
{{domxref("DedicatedWorkerGlobalScope.onmessageerror")}}
-
Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("messageerror")}} event is raised.
+
Is an {{event("Event_handlers")}} representing the code to be called when the {{event("messageerror")}} event is raised.

方法

-- cgit v1.2.3-54-g00ecf