From 26ac626caea59af7eef95e7b3af504d27f3388b5 Mon Sep 17 00:00:00 2001 From: yqhan Date: Wed, 24 Aug 2022 18:52:09 +0800 Subject: [PATCH] Modifying Interface Description Describe: Modify DedicatedWorkerGlobalScope postmessage description and the worker. In which s description is not consistent. issue: https://gitee.com/openharmony/docs/issues/I5NYPU Signed-off-by: yqhan --- .../application-dev/reference/apis/js-apis-worker.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-worker.md b/zh-cn/application-dev/reference/apis/js-apis-worker.md index 662ee71432..c50af61ca6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-worker.md +++ b/zh-cn/application-dev/reference/apis/js-apis-worker.md @@ -27,10 +27,11 @@ Worker构造函数的选项信息,用于为Worker添加其他信息。 **系统能力:** 以下各项对应的系统能力均为SystemCapability.Utils.Lang。 -| 名称 | 参数类型 | 可读 | 可写 | 说明 | -| ---- | --------- | ---- | ---- | ---------------------- | -| type | "classic" | 是 | 是 | 按照指定方式执行脚本。 | -| name | string | 是 | 是 | Worker的名称。 | +| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| ------ | --------- | ---- | ---- | ---------------------- | +| type | "classic" | 是 | 是 | 按照指定方式执行脚本。 | +| name | string | 是 | 是 | Worker的名称。 | +| shared | boolean | 是 | 是 | Worker是否可以被分享。 | ## Worker @@ -438,7 +439,7 @@ Worker线程用于与宿主线程通信的类,通过postMessage接口发送消 ### postMessage -postMessage(message: Object, options?: PostMessageOptions): void +postMessage(messageObject: Object, options?: PostMessageOptions): void Worker向宿主线程发送消息。 -- GitLab