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 ac29892f18b8291a40a445b7471ace833f264694..54bfbd04652fcaa8e3fe6cb81a7ac64dfec53d20 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; }