diff --git a/zh-cn/application-dev/reference/apis/js-apis-display.md b/zh-cn/application-dev/reference/apis/js-apis-display.md index bd0311a869e105bc573c5cd92d0274baa6fd32dc..517bd11b70eefa3efbaa73a824a6f8c7119c3c19 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-display.md +++ b/zh-cn/application-dev/reference/apis/js-apis-display.md @@ -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)); }); ```