From 473fa579eb9543263d737ad5aa8b4425e3abf79e Mon Sep 17 00:00:00 2001 From: LVB8189 Date: Tue, 30 Aug 2022 09:26:23 +0800 Subject: [PATCH] Signed-off-by: LVB8189 Changes to be committed: --- zh-cn/application-dev/reference/apis/js-apis-pasteboard.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-pasteboard.md b/zh-cn/application-dev/reference/apis/js-apis-pasteboard.md index 61f00ab3ff..27e4b3c20c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-pasteboard.md +++ b/zh-cn/application-dev/reference/apis/js-apis-pasteboard.md @@ -777,9 +777,8 @@ setProperty(property: PasteDataProperty): void ```js var pasteData = pasteboard.createHtmlData('application/xml'); - let prop : pasteboard.PasteDataProperty = { - shareOption: pasteboard.ShareOption.InApp - } + let prop = ppasteData.getProperty(); + props.shareOption = pasteboard.ShareOption.InApp; pasteData.setProperty(prop); ``` -- GitLab