From 7e9067c9fa777c90fd2aaf8160c517a70396cc88 Mon Sep 17 00:00:00 2001 From: cy7717 Date: Sat, 20 May 2023 17:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A3=80=E8=A7=86=E6=84=8F?= =?UTF-8?q?=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cy7717 --- zh-cn/application-dev/reference/apis/js-apis-request.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-request.md b/zh-cn/application-dev/reference/apis/js-apis-request.md index 0b3b994e49..1a5aa32c3c 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-request.md +++ b/zh-cn/application-dev/reference/apis/js-apis-request.md @@ -421,7 +421,7 @@ off(type: 'headerReceive', callback?: (header: object) => void): void ```js let headerCallback = (header) => { - console.info('Upload delete headerReceive notification.' + 'header:' + JSON.stringify(header)); + console.info('Upload delete headerReceive notification.' + 'header: ${JSON.stringify(header)}'); }; uploadTask.off('headerReceive', headerCallback); ``` @@ -1010,7 +1010,7 @@ off(type: 'fail', callback?: (err: number) => void): void ```js let failCallback = (err) => { - console.info('Download delete fail notification.' + 'err:' + err); + console.info('Download delete fail notification.' + 'err: ${err.message}'); }; downloadTask.off('fail', failCallback); ``` -- GitLab