From 6e63173b1e59fbbb07c4e3102a389eb8f9a20b8e Mon Sep 17 00:00:00 2001 From: junyi233 Date: Tue, 18 Jul 2023 03:19:00 +0000 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E6=8F=8F=E7=BC=BA=E9=99=B7=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: junyi233 --- zh-cn/application-dev/reference/apis/js-apis-Bundle.md | 4 ++-- zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md | 2 +- zh-cn/application-dev/reference/apis/js-apis-zlib.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md index 50dceeba27..a387581915 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md @@ -646,7 +646,7 @@ SystemCapability.BundleManager.BundleFramework ```ts let bundleName = "com.example.myapplication"; -bundleManager.setApplicationEnabled(bundleName, false).then(()=> { +bundle.setApplicationEnabled(bundleName, false).then(()=> { console.info('setApplicationEnabled successfully.'); }).catch(err=> { console.error('setApplicationEnabled failed.'); @@ -767,7 +767,7 @@ SystemCapability.BundleManager.BundleFramework ```ts let permission = "ohos.permission.GET_BUNDLE_INFO"; -bundleManager.getPermissionDef(permission, (err, data) => { +bundle.getPermissionDef(permission, (err, data) => { if (err) { console.error('getPermissionDef failed:' + err.message); } else { diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md b/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md index 6fb6e6658a..f51404f373 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md @@ -41,7 +41,7 @@ import bundleMonitor from '@ohos.bundle.bundleMonitor'; | 名称 | 说明 | | ---------- | --------------- | -| app | 监听应用事件。 | +| add | 监听应用事件。 | | update | 监听更新事件。 | | remove | 监听删除事件。 | diff --git a/zh-cn/application-dev/reference/apis/js-apis-zlib.md b/zh-cn/application-dev/reference/apis/js-apis-zlib.md index f4505dc8a0..e03deaa744 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-zlib.md +++ b/zh-cn/application-dev/reference/apis/js-apis-zlib.md @@ -244,7 +244,7 @@ decompressFile(inFile: string, outFile: string, options: Options, callback: Asyn 以下错误码的详细介绍请参见[ohos.zlib错误码](../errorcodes/errorcode-zlib.md)。 -| 错误码ID | 错误信息 +| 错误码ID | 错误信息 | | -------- | --------------------------------------| | 900001 | The input source file is invalid. | | 900002 | The input destination file is invalid. | -- GitLab