提交 98c8f727 编写于 作者: Y youqijing

修改display示例代码

Signed-off-by: Nyouqijing <youqijing@huawei.com>
Change-Id: Ic884cfce420283004d9211650453bd6167fe430b
上级 3058ec50
......@@ -67,7 +67,7 @@ getDefaultDisplay(callback: AsyncCallback&lt;Display&gt;): void
```
var displayClass = null;
display.getDefaultDisplay((err, data) => {
if (err) {
if (err.code) {
console.error('Failed to obtain the default display object. Code: ' + JSON.stringify(err));
return;
}
......@@ -119,7 +119,7 @@ getAllDisplay(callback: AsyncCallback&lt;Array&lt;Display&gt;&gt;): void
```
display.getAllDisplay((err, data) => {
if (err) {
if (err.code) {
console.error('Failed to obtain all the display objects. Code: ' + JSON.stringify(err));
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册