提交 6a43c224 编写于 作者: W wusongqing

updated docs

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