提交 d0162ee1 编写于 作者: Z zuotao

Pasteboard API文档修改

Signed-off-by: Nzuotao <zuotao2@huawei.com>
上级 6a2e1832
......@@ -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**
......
......@@ -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 @@ getRecord(index: number): PasteDataRecord
| 错误码ID | 错误信息 |
| -------- | -------- |
| 12900001 | The index is out of range. |
| 12900001 | The index is out of the record. |
**示例:**
......@@ -910,7 +910,7 @@ removeRecord(index: number): void
| 错误码ID | 错误信息 |
| -------- | -------- |
| 12900001 | The index is out of range. |
| 12900001 | The index is out of the record. |
**示例:**
......@@ -940,7 +940,7 @@ replaceRecord(index: number, record: PasteDataRecord): void
| 错误码ID | 错误信息 |
| -------- | -------- |
| 12900001 | The index is out of range. |
| 12900001 | The index is out of the record. |
**示例:**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册