未验证 提交 679fb3da 编写于 作者: O openharmony_ci 提交者: Gitee

!9269 Add missing ; in js-apis-display.md

Merge pull request !9269 from 毛江平/local
......@@ -256,7 +256,7 @@ Subscribes to display changes.
```js
var callback = (data) => {
console.info('Listening enabled. Data: ' + JSON.stringify(data))
console.info('Listening enabled. Data: ' + JSON.stringify(data));
}
display.on("add", callback);
```
......
......@@ -256,7 +256,7 @@ on(type: 'add'|'remove'|'change', callback: Callback<number>): void
```js
var callback = (data) => {
console.info('Listening enabled. Data: ' + JSON.stringify(data))
console.info('Listening enabled. Data: ' + JSON.stringify(data));
}
display.on("add", callback);
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册