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

!2517 修改display示例代码

Merge pull request !2517 from youqijing/master
......@@ -67,7 +67,7 @@ getDefaultDisplay(callback: AsyncCallback<Display>): 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<Array<Display>>): 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.
先完成此消息的编辑!
想要评论请 注册