From b920b9ed8062170c13e0699ded4aa8b42c977144 Mon Sep 17 00:00:00 2001 From: junyi233 Date: Wed, 23 Nov 2022 06:56:27 +0000 Subject: [PATCH] =?UTF-8?q?fix=20=E7=A4=BA=E4=BE=8B=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: junyi233 --- .../reference/apis/js-apis-appControl.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-appControl.md b/zh-cn/application-dev/reference/apis/js-apis-appControl.md index ac29892f18..54bfbd0465 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appControl.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appControl.md @@ -100,8 +100,8 @@ var appId = "com.example.myapplication_xxxxx"; var want = {bundleName: 'com.example.myapplication'}; try { - appControl.setDisposedStatus(appId, want, (err, data) => { - if (err) { + appControl.setDisposedStatus(appId, want, (error, data) => { + if (error) { console.error('setDisposedStatus failed ' + error.message); return; } @@ -194,8 +194,8 @@ getDisposedStatus(appId: string, callback: AsyncCallback\): void; var appId = "com.example.myapplication_xxxxx"; try { - appControl.getDisposedStatus(appId, (err, data) => { - if (err) { + appControl.getDisposedStatus(appId, (error, data) => { + if (error) { console.error('getDisposedStatus failed ' + error.message); return; } @@ -287,8 +287,8 @@ deleteDisposedStatus(appId: string, callback: AsyncCallback\) : void ```ts var appId = "com.example.myapplication_xxxxx"; try { - appControl.deleteDisposedStatus(appId, (err, data) => { - if (err) { + appControl.deleteDisposedStatus(appId, (error, data) => { + if (error) { console.error('deleteDisposedStatus failed ' + error.message); return; } -- GitLab