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

!5268 翻译完成:5103 【轻量级 PR】:master display自动化测试问题修改

Merge pull request !5268 from wusongqing/TR5103
...@@ -168,11 +168,10 @@ Enables listening. ...@@ -168,11 +168,10 @@ Enables listening.
**Example** **Example**
```js ```js
var type = "add";
var callback = (data) => { var callback = (data) => {
console.info('Listening enabled. Data: ' + JSON.stringify(data)) console.info('Listening enabled. Data: ' + JSON.stringify(data))
} }
display.on(type, callback); display.on("add", callback);
``` ```
...@@ -192,6 +191,5 @@ Disables listening. ...@@ -192,6 +191,5 @@ Disables listening.
**Example** **Example**
```js ```js
var type = "remove"; display.off("remove");
display.off(type);
``` ```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册