未验证 提交 88a1722d 编写于 作者: 孙悦 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-pasteboard.md.

Signed-off-by: Nsunyue <sunyue77@h-partners.com>
上级 50b6c7f5
......@@ -914,7 +914,7 @@ on(type: 'update', callback: () =&gt;void ): void
```js
var systemPasteboard = pasteboard.getSystemPasteboard();
var listener = ()=>{
var listener = () = > {
console.info('The system pasteboard has changed');
};
systemPasteboard.on('update', listener);
......@@ -938,7 +938,7 @@ off(type: 'update', callback?: () =&gt;void ): void
**示例**
```js
var listener = ()=>{
let listener = () = > {
console.info('The system pasteboard has changed');
};
systemPasteboard.off('update', listener);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册