From 0740ef6ca7d210dd645f8a7f97edb7b305f22aad Mon Sep 17 00:00:00 2001 From: junyi233 Date: Tue, 18 Jul 2023 03:24:30 +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 1f281d4a6d..128e095e00 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md @@ -645,7 +645,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.'); @@ -766,7 +766,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 b18850c6af..624ccf8181 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 f102d9d658..97a026adfd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-zlib.md +++ b/zh-cn/application-dev/reference/apis/js-apis-zlib.md @@ -240,7 +240,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