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 404c4eb3f3d506203a4f6a758b8a7b9bffbc7a4e..4aff2d3116e50b96dd6f4f4678b28cf3e67a0b94 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-pasteboard.md +++ b/zh-cn/application-dev/reference/apis/js-apis-pasteboard.md @@ -16,7 +16,7 @@ import pasteboard from '@ohos.pasteboard'; **系统能力:** SystemCapability.MiscServices.Pasteboard -| 名称 | 参数类型 | 值 | 说明 | +| 名称 | 类型 | 值 | 说明 | | -------- | -------- | -------- | -------- | | MAX_RECORD_NUM7+ | number | 512 | 单个PasteData中所能包含的最大条目数。 | | MIMETYPE_TEXT_HTML7+ | string | 'text/html' | HTML内容的MIME类型定义。 | @@ -374,7 +374,7 @@ let record = pasteboard.createUriRecord('dataability:///com.example.myapplicatio **系统能力:** SystemCapability.MiscServices.Pasteboard -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | | additions7+ | {[key:string]:object} | 是 | 是 | 设置的其他附加属性数据。 | | mimeTypes7+ | Array<string> | 是 | 否 | 剪贴板内容条目的数据类型,非重复的类型列表。 | @@ -391,7 +391,7 @@ let record = pasteboard.createUriRecord('dataability:///com.example.myapplicatio **系统能力:** SystemCapability.MiscServices.Pasteboard -| 名称 | 参数类型 | 可读 | 可写 | 说明 | +| 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | -------- | -------- | -------- | -------- | | htmlText7+ | string | 是 | 否 | HTML内容。 | | want7+ | [Want](js-apis-application-Want.md) | 是 | 否 | Want内容。 | @@ -687,6 +687,7 @@ addRecord(mimeType: string, value: ValueType): void **错误码:** 以下错误码的详细介绍请参见[剪贴板错误码](../errorcodes/errorcode-pasteboard.md)。 + | 错误码ID | 错误信息 | | -------- | -------- | | 12900002 | The number of record exceeds the maximum limit. | @@ -808,6 +809,7 @@ getRecord(index: number): PasteDataRecord **错误码:** 以下错误码的详细介绍请参见[剪贴板错误码](../errorcodes/errorcode-pasteboard.md)。 + | 错误码ID | 错误信息 | | -------- | -------- | | 12900001 | The index is out of range. | @@ -905,6 +907,7 @@ removeRecord(index: number): void **错误码:** 以下错误码的详细介绍请参见[剪贴板错误码](../errorcodes/errorcode-pasteboard.md)。 + | 错误码ID | 错误信息 | | -------- | -------- | | 12900001 | The index is out of range. | @@ -934,6 +937,7 @@ replaceRecord(index: number, record: PasteDataRecord): void **错误码:** 以下错误码的详细介绍请参见[剪贴板错误码](../errorcodes/errorcode-pasteboard.md)。 + | 错误码ID | 错误信息 | | -------- | -------- | | 12900001 | The index is out of range. | @@ -1303,6 +1307,7 @@ setData(data: PasteData, callback: AsyncCallback<void>): void **错误码:** 以下错误码的详细介绍请参见[剪贴板错误码](../errorcodes/errorcode-pasteboard.md)。 + | 错误码ID | 错误信息 | | -------- | -------- | | 12900003 | Another copy or paste is in progress. | @@ -1345,6 +1350,7 @@ setData(data: PasteData): Promise<void> **错误码:** 以下错误码的详细介绍请参见[剪贴板错误码](../errorcodes/errorcode-pasteboard.md)。 + | 错误码ID | 错误信息 | | -------- | -------- | | 12900003 | Another copy or paste is in progress. | @@ -1379,6 +1385,7 @@ getData( callback: AsyncCallback<PasteData>): void **错误码:** 以下错误码的详细介绍请参见[剪贴板错误码](../errorcodes/errorcode-pasteboard.md)。 + | 错误码ID | 错误信息 | | -------- | -------- | | 12900003 | Another copy or paste is in progress. | @@ -1413,6 +1420,7 @@ getData(): Promise<PasteData> **错误码:** 以下错误码的详细介绍请参见[剪贴板错误码](../errorcodes/errorcode-pasteboard.md)。 + | 错误码ID | 错误信息 | | -------- | -------- | | 12900003 | Another copy or paste is in progress. |