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

!8903 【轻量级 PR】:update zh-cn/application-dev/reference/apis/js-apis-display.md.

Merge pull request !8903 from 葛亚芳/N/A
......@@ -172,9 +172,9 @@ getAllDisplay(): Promise<Array<Display>>
```js
let promise = display.getAllDisplay();
promise.then((data) => {
console.error('Failed to obtain all the display objects. Code: ' + JSON.stringify(err));
}).catch((err) => {
console.info('Succeeded in obtaining all the display objects. Data: ' + JSON.stringify(data));
}).catch((err) => {
console.error('Failed to obtain all the display objects. Code: ' + JSON.stringify(err));
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册