From a1d04a3a9c4305f0320778829f598691da29794a Mon Sep 17 00:00:00 2001 From: xu-rui-w <xurui101@huawei.com> Date: Thu, 23 Jun 2022 17:54:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xu-rui-w <xurui101@huawei.com> --- zh-cn/application-dev/reference/apis/js-apis-image.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-image.md b/zh-cn/application-dev/reference/apis/js-apis-image.md index 10f95e30a2..532c0f44b0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-image.md +++ b/zh-cn/application-dev/reference/apis/js-apis-image.md @@ -245,8 +245,7 @@ image.createPixelMap(color, opts) region: { size: { height: 1, width: 2 }, x: 0, y: 0 } } }) - }) - .catch(error => { + }).catch(error => { console.log('error: ' + error); }) ``` @@ -621,8 +620,7 @@ getImageInfo(index?: number): Promise\<ImageInfo> imageSourceApi.getImageInfo(0) .then(imageInfo => { console.log('getImageInfo succeeded.'); - }) - .catch(error => { + }).catch(error => { console.log('getImageInfo failed.'); }) ``` @@ -654,8 +652,7 @@ getImageProperty(key:string, options?: GetImagePropertyOptions): Promise\<string imageSourceApi.getImageProperty("BitsPerSample") .then(data => { console.log('getImageProperty succeeded.'); - }) - .catch(error => { + }).catch(error => { console.log('getImageProperty failed.'); }) ``` -- GitLab