From cd781a34b5bdeb479e3f2787078444e977aef9de Mon Sep 17 00:00:00 2001 From: zuotao Date: Mon, 13 Mar 2023 15:34:26 +0800 Subject: [PATCH] =?UTF-8?q?Pasteboard=20API=E6=96=87=E6=A1=A3=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zuotao --- en/application-dev/reference/apis/js-apis-pasteboard.md | 8 ++++---- .../application-dev/reference/apis/js-apis-pasteboard.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-pasteboard.md b/en/application-dev/reference/apis/js-apis-pasteboard.md index d1d554f677..0a488bcc3f 100644 --- a/en/application-dev/reference/apis/js-apis-pasteboard.md +++ b/en/application-dev/reference/apis/js-apis-pasteboard.md @@ -636,7 +636,7 @@ let opt = { scaleMode: 1 }; image.createPixelMap(buffer, opt).then((pixelMap) => { - let pasteData = pasteboard.createData(MIMETYPE_PIXELMAP, pixelMap); + let pasteData = pasteboard.createData(pasteboard.MIMETYPE_PIXELMAP, pixelMap); let PixelMap = pasteData.getPrimaryPixelMap(); }); ``` @@ -812,7 +812,7 @@ For details about the error codes, see [Pasteboard Error Codes](../errorcodes/er | Error Code ID| Error Message| | -------- | -------- | -| 12900001 | The index is out of range. | +| 12900001 | The index is out of the record. | **Example** @@ -910,7 +910,7 @@ For details about the error codes, see [Pasteboard Error Codes](../errorcodes/er | Error Code ID| Error Message| | -------- | -------- | -| 12900001 | The index is out of range. | +| 12900001 | The index is out of the record. | **Example** @@ -940,7 +940,7 @@ For details about the error codes, see [Pasteboard Error Codes](../errorcodes/er | Error Code ID| Error Message| | -------- | -------- | -| 12900001 | The index is out of range. | +| 12900001 | The index is out of the record. | **Example** 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 8c47f29f71..146d48f1fc 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-pasteboard.md +++ b/zh-cn/application-dev/reference/apis/js-apis-pasteboard.md @@ -606,7 +606,7 @@ let opt = { scaleMode: 1 }; image.createPixelMap(buffer, opt).then((pixelMap) => { - let pasteData = pasteboard.createData(MIMETYPE_PIXELMAP, pixelMap); + let pasteData = pasteboard.createData(pasteboard.MIMETYPE_PIXELMAP, pixelMap); let PixelMap = pasteData.getPrimaryPixelMap(); }); ``` @@ -782,7 +782,7 @@ getRecord(index: number): PasteDataRecord | 错误码ID | 错误信息 | | -------- | -------- | -| 12900001 | The index is out of range. | +| 12900001 | The index is out of the record. | **示例:** @@ -880,7 +880,7 @@ removeRecord(index: number): void | 错误码ID | 错误信息 | | -------- | -------- | -| 12900001 | The index is out of range. | +| 12900001 | The index is out of the record. | **示例:** @@ -910,7 +910,7 @@ replaceRecord(index: number, record: PasteDataRecord): void | 错误码ID | 错误信息 | | -------- | -------- | -| 12900001 | The index is out of range. | +| 12900001 | The index is out of the record. | **示例:** -- GitLab