diff --git a/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md b/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md index fd7060cfb6b7bf791c6ec2ea344961d1dc441315..23fee9213ef0bd10075ad52e8ef943062029c1ee 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle-distributedBundle.md @@ -110,7 +110,7 @@ SystemCapability.BundleManager.DistributedBundleFramework | 参数名 | 类型 | 必填 | 说明 | | ------------ | ------------------------------------------------------------ | ---- | -------------------------------------------------- | | elementNames | Array<[ElementName](js-apis-bundle-ElementName.md)> | 是 | ElementName信息,最大数组长度为10 | -| callback | AsyncCallback< Array<[RemoteAbilityInfo](js-apis-bundle-remoteAbilityInfo.md)>> | 是 | 程序启动作为入参的回调函数,返回远程基本能力信息。 | +| callback | AsyncCallback> | 是 | 程序启动作为入参的回调函数,返回远程基本能力信息。 | 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 fe7607be111aa9327bd671e277f3ccfa0594c337..207cfec2689d0a833865827e561429bf9dd58de7 100755 --- a/zh-cn/application-dev/reference/apis/js-apis-Bundle.md +++ b/zh-cn/application-dev/reference/apis/js-apis-Bundle.md @@ -708,7 +708,7 @@ SystemCapability.BundleManager.BundleFramework | 参数名 | 类型 | 必填 | 说明 | | ----------- | ------ | ---- | ------------------------------------------------------------ | | bundleFlags | number | 是 | 用于指定返回的应用信息对象中包含信息的标记。默认值:0,取值范围:参考[BundleFlag说明](#bundleflag)中应用信息相关flag | -| userId | number | 是 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | +| userId | number | 否 | 用户ID。默认值:调用方所在用户,取值范围:大于等于0。 | **返回值:** 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 f024a3bf03ea03db49db87750e4dc55e14c90d16..10b9377c92a73e341ade7e2a376617aef7703e05 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appControl.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appControl.md @@ -45,7 +45,7 @@ setDisposedStatus(appId: string, disposedWant: Want): Promise\ | 错误码ID | 错误信息 | | ------ | -------------------------------------- | -| 17700005 | The specified appId was not found. | +| 17700005 | The specified app ID is not found. | **示例:** @@ -91,7 +91,7 @@ setDisposedStatus(appId: string, disposedWant: Want, callback: AsyncCallback\; | 错误码ID | 错误信息 | | ------ | -------------------------------------- | -| 17700005 | The specified appId was not found. | +| 17700005 | The specified app ID is not found. | **示例:** @@ -186,7 +186,7 @@ getDisposedStatus(appId: string, callback: AsyncCallback\): void; | 错误码ID | 错误信息 | | ------ | -------------------------------------- | -| 17700005 | The specified appId was not found. | +| 17700005 | The specified app ID is not found. | **示例:** @@ -236,7 +236,7 @@ deleteDisposedStatus(appId: string): Promise\ | 错误码ID | 错误信息 | | ------ | -------------------------------------- | -| 17700005 | The specified appId was not found. | +| 17700005 | The specified app ID is not found. | **示例:** @@ -280,7 +280,7 @@ deleteDisposedStatus(appId: string, callback: AsyncCallback\) : void | 错误码ID | 错误信息 | | ------ | -------------------------------------- | -| 17700005 | The specified appId was not found. | +| 17700005 | The specified app ID is not found. | **示例:** diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md index 2fa78df889c3b29a0c2b7c3e993e5ff22233b778..7de063bca0d78be314e1cf0260748efe23ab532d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-AbilityInfo.md @@ -13,32 +13,32 @@ Ability信息,未做特殊说明的属性,均通过GET_BUNDLE_DEFAULT获取 **系统能力:** 以下各项对应的系统能力均为SystemCapability.BundleManager.BundleFramework -| 名称 | 类型 | 可读 | 可写 | 说明 | -| --------------------- | -------------------------------------------------------- | ---- | ---- | ----------------------------------------- | -| bundleName | string | 是 | 否 | 应用包名 | -| name | string | 是 | 否 | Ability名称 | -| label | string | 是 | 否 | Ability对用户显示的名称 | -| description | string | 是 | 否 | Ability的描述 | -| icon | string | 是 | 否 | Ability的图标资源文件索引 | -| descriptionId | number | 是 | 否 | Ability的描述id | -| iconId | number | 是 | 否 | Ability的图标id | -| moduleName | string | 是 | 否 | Ability所属的HAP包的名称 | -| process | string | 是 | 否 | Ability的进程,如果不设置,默认为包的名称 | -| targetAbility | string | 是 | 否 | 当前Ability重用的目标Ability
此属性仅可在FA模型下使用 | -| backgroundModes | number | 是 | 否 | 表示后台服务的类型
此属性仅可在FA模型下使用 | -| isVisible | boolean | 是 | 否 | 判断Ability是否可以被其他应用调用 | -| formEnabled | boolean | 是 | 否 | 判断Ability是否提供卡片能力
此属性仅可在FA模型下使用 | -| type | AbilityType | 是 | 否 | Ability类型
此属性仅可在FA模型下使用 | -| orientation | DisplayOrientation | 是 | 否 | Ability的显示模式 | -| launchMode | LaunchMode | 是 | 否 | Ability的启动模式 | +| 名称 | 类型 | 可读 | 可写 | 说明 | +| --------------------- | -------------------------------------------------------- | ---- | ---- | ------------------------------------------------------------ | +| bundleName | string | 是 | 否 | 应用包名 | +| name | string | 是 | 否 | Ability名称 | +| label | string | 是 | 否 | Ability对用户显示的名称 | +| description | string | 是 | 否 | Ability的描述 | +| icon | string | 是 | 否 | Ability的图标资源文件索引 | +| descriptionId | number | 是 | 否 | Ability的描述id | +| iconId | number | 是 | 否 | Ability的图标id | +| moduleName | string | 是 | 否 | Ability所属的HAP包的名称 | +| process | string | 是 | 否 | Ability的进程,如果不设置,默认为包的名称 | +| targetAbility | string | 是 | 否 | 当前Ability重用的目标Ability
此属性仅可在FA模型下使用 | +| backgroundModes | number | 是 | 否 | 表示后台服务的类型
此属性仅可在FA模型下使用 | +| isVisible | boolean | 是 | 否 | 判断Ability是否可以被其他应用调用 | +| formEnabled | boolean | 是 | 否 | 判断Ability是否提供卡片能力
此属性仅可在FA模型下使用 | +| type | bundle.AbilityType | 是 | 否 | Ability类型
此属性仅可在FA模型下使用 | +| orientation | bundle.DisplayOrientation | 是 | 否 | Ability的显示模式 | +| launchMode | bundle.LaunchMode | 是 | 否 | Ability的启动模式 | | permissions | Array\ | 是 | 否 | 被其他应用Ability调用时需要申请的权限集合
通过传入GET_ABILITY_INFO_WITH_PERMISSION获取 | -| deviceTypes | Array\ | 是 | 否 | Ability支持的设备类型 | -| deviceCapabilities | Array\ | 是 | 否 | Ability需要的设备能力 | -| readPermission | string | 是 | 否 | 读取Ability数据所需的权限
此属性仅可在FA模型下使用 | -| writePermission | string | 是 | 否 | 向Ability写数据所需的权限
此属性仅可在FA模型下使用 | +| deviceTypes | Array\ | 是 | 否 | Ability支持的设备类型 | +| deviceCapabilities | Array\ | 是 | 否 | Ability需要的设备能力 | +| readPermission | string | 是 | 否 | 读取Ability数据所需的权限
此属性仅可在FA模型下使用 | +| writePermission | string | 是 | 否 | 向Ability写数据所需的权限
此属性仅可在FA模型下使用 | | applicationInfo | [ApplicationInfo](js-apis-bundle-ApplicationInfo.md) | 是 | 否 | 应用程序的配置信息
通过传入GET_ABILITY_INFO_WITH_APPLICATION获取 | | uri | string | 是 | 否 | 获取Ability的统一资源标识符(URI)
此属性仅可在FA模型下使用 | -| labelId | number | 是 | 否 | Ability的标签id | -| subType | AbilitySubType | 是 | 否 | Ability中枚举使用的模板的子类型
此属性仅可在FA模型下使用 | -| metadata8+ | Array\<[CustomizeData](js-apis-bundle-CustomizeData.md)> | 是 | 否 | ability的元信息
通过传入GET_ABILITY_INFO_WITH_METADATA获取 | -| enabled8+ | boolean | 是 | 否 | ability是否可用 | \ No newline at end of file +| labelId | number | 是 | 否 | Ability的标签id | +| subType | bundle.AbilitySubType | 是 | 否 | Ability中枚举使用的模板的子类型
此属性仅可在FA模型下使用 | +| metadata8+ | Array\<[CustomizeData](js-apis-bundle-CustomizeData.md)> | 是 | 否 | ability的元信息
通过传入GET_ABILITY_INFO_WITH_METADATA获取 | +| enabled8+ | boolean | 是 | 否 | ability是否可用 | \ No newline at end of file diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md b/zh-cn/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md index f6f6c7f55cca6dd02909085134ae24c1723ba21a..be617aafe7ad5a6245f997245ad837e96d50e765 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundle-ShortcutInfo.md @@ -1,9 +1,8 @@ # ShortcutInfo(deprecated) -> 从API version 9开始不再维护,建议使用[ShortcutInfo](js-apis-bundleManager-shortcutInfo.md)替代 -> **说明:** -> + +> ![icon-note.gif](public_sys-resources/icon-note.gif) **说明:** > 本模块首批接口从API version 7 开始支持。后续版本的新增接口,采用上角标单独标记接口的起始版本。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md b/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md index 074d2406aac642377344692cd82de336e936be27..6922e72eb6ab0ea69f2655454f428e13373841e2 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleManager.md @@ -1555,7 +1555,7 @@ cleanBundleCacheFiles(bundleName: string): Promise\; | 错误码ID | 错误信息 | | -------- | ---------------------------------------------------------- | | 17700001 | The specified bundleName is not found. | -| 17700030 | The specified bundle does not support cleaning cache files. | +| 17700030 | The specified bundle does not support clearing of cache files. | **示例:** @@ -2033,7 +2033,7 @@ getLaunchWantForBundle(bundleName: string, userId: number, callback: AsyncCallba | 错误码ID | 错误信息 | | -------- | --------------------------------------| | 17700001 | The specified bundleName is not found. | -| 17700004 | The specified user ID is not found | +| 17700004 | The specified user ID is not found. | | 17700026 | The specified bundle is disabled. | **示例:** @@ -2082,7 +2082,7 @@ getLaunchWantForBundle(bundleName: string, callback: AsyncCallback\): void | 错误码ID | 错误信息 | | -------- | --------------------------------------| | 17700001 | The specified bundleName is not found. | -| 17700004 | The specified user ID is not found | +| 17700004 | The specified user ID is not found. | | 17700026 | The specified bundle is disabled. | **示例:** @@ -2299,7 +2299,7 @@ getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, m | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | | 17700002 | The specified moduleName is not existed. | -| 17700003 | The specified extensionAbilityName is not existed. | +| 17700003 | The specified extensionAbilityName not existed. | | 17700024 | Failed to get the profile because there is no profile in the HAP. | | 17700026 | The specified bundle is disabled. | @@ -2353,7 +2353,7 @@ getProfileByExtensionAbility(moduleName: string, extensionAbilityName: string, m | 错误码ID | 错误信息 | | -------- | ------------------------------------------------------------ | | 17700002 | The specified moduleName is not existed. | -| 17700003 | The specified extensionAbilityName is not existed. | +| 17700003 | The specified extensionAbilityName not existed. | | 17700024 | Failed to get the profile because there is no profile in the HAP. | | 17700026 | The specified bundle is disabled. | @@ -2734,7 +2734,7 @@ getApplicationInfoSync(bundleName: string, applicationFlags: number, userId: num | 错误码ID | 错误信息 | | -------- | -------------------------------------- | | 17700001 | The specified bundleName is not found. | -| 17700004 | The specified userId is not found. | +| 17700004 | The specified user ID is not found. | | 17700026 | The specified bundle is disabled. | **示例:** 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 49b782bf5001832ff1b73d19b19f623460f31ae9..36940069382ecbecf5d4149357bcced22b87aa3d 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md +++ b/zh-cn/application-dev/reference/apis/js-apis-bundleMonitor.md @@ -37,11 +37,11 @@ on(type: BundleChangedEvent, callback: Callback\): void; 注册监听应用的安装,卸载,更新。 -**需要权限:**ohos.permission.LISTEN_BUNDLE_CHANGE +**需要权限:** ohos.permission.LISTEN_BUNDLE_CHANGE **系统API:** 此接口为系统接口,三方应用不支持调用 -**系统能力:**SystemCapability.BundleManager.BundleFramework.Core +**系统能力:** SystemCapability.BundleManager.BundleFramework.Core **参数:** @@ -50,10 +50,6 @@ on(type: BundleChangedEvent, callback: Callback\): void; | BundleChangedEvent | string | 是 | 注册监听的事件类型。 | | Callback\ | callback | 是 | 注册监听的回调函数。 | -**错误码:** - -以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 - **示例:** ```ts @@ -74,11 +70,11 @@ off(type: BundleChangedEvent, callback?: Callback\): void; 注销监听应用的安装,卸载,更新。 -**需要权限:**ohos.permission.LISTEN_BUNDLE_CHANGE +**需要权限:** ohos.permission.LISTEN_BUNDLE_CHANGE **系统API:** 此接口为系统接口,三方应用不支持调用 -**系统能力:**SystemCapability.BundleManager.BundleFramework.Core +**系统能力:** SystemCapability.BundleManager.BundleFramework.Core **参数:** @@ -87,10 +83,6 @@ off(type: BundleChangedEvent, callback?: Callback\): void; | BundleChangedEvent | string | 是 | 注销监听的事件类型。 | | Callback\ | callback | 是 | 注销监听的回调函数,当为空时表示注销当前事件的所有callback。 | -**错误码:** - -以下错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 - **示例:** ```ts diff --git a/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md b/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md index 858141bcd8c3622bd4ca751e557417c028c18312..8f5a273bf75b5e797e19017e0247c66736ce45bc 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-defaultAppManager.md @@ -27,7 +27,7 @@ import defaultAppMgr from '@ohos.bundle.defaultAppManager'; **系统能力:** SystemCapability.BundleManager.BundleFramework.DefaultApp -| 参数名 | 类型 | 值 | 说明 | +| 名称 | 类型 | 必填 | 说明 | | -------- | -------- | -------------------------------------- | -------------------------------------- | | BROWSER | string | Web Browser | 默认浏览器。 | | IMAGE | string | Image Gallery | 默认图片查看器。 | @@ -58,10 +58,6 @@ isDefaultApplication(type: string): Promise\ | ------------------------- | ------------------ | | Promise\ | Promise形式返回当前应用是否是默认应用,true表示是默认应用,false表示不是默认应用。 | -**错误码:** - -错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 - **示例:** @@ -90,10 +86,6 @@ isDefaultApplication(type: string, callback: AsyncCallback\): void | type | string | 是 | 要查询的应用类型,取[ApplicationType](#defaultappmgrapplicationtype)中的值。 | | callback | AsyncCallback\ | 是 | 程序启动作为入参的回调函数,返回当前应用是否是默认应用,true表示是默认应用,false表示不是默认应用。 | -**错误码:** - -错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 - **示例:** ```js @@ -266,11 +258,11 @@ defaultAppMgr.getDefaultApplication("image/png", (err, data) => { ## defaultAppMgr.setDefaultApplication -setDefaultApplication(type: string, elementName: ElementName, userId?: number): Promise\<**返回值:** +setDefaultApplication(type: string, elementName: ElementName, userId?: number): Promise\ | 类型 | 说明 | | ----------------------------------------------------------- | --------------------------- | -| Promise\<[BundleInfo](js-apis-bundleManager-bundleInfo.md)> | Promise对象,返回BundleInfo | +| Promise\ | Promise对象,返回BundleInfo | > diff --git a/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md b/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md index eef03ac00d7a5e57358e2ea677a5d59e2370bb66..ce3b837eace82c797d35893d8d4bc74f499dd443 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md +++ b/zh-cn/application-dev/reference/apis/js-apis-freeInstall.md @@ -363,10 +363,6 @@ getDispatchInfo(callback: AsyncCallback\): void; | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | callback | AsyncCallback<[DispatchInfo](js-apis-bundleManager-dispatchInfo.md)> | 是 | 回调函数。当函数调用成功,err为null,data为获取到的[DispatchInfo](js-apis-bundleManager-dispatchInfo.md)信息。否则为错误对象。 | -**错误码:** - -错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 - **示例:** ```js @@ -402,10 +398,6 @@ getDispatchInfo(): Promise\; | ------------------------------------------------ | ------------------------------------------------------------ | | Promise<[DispatchInfo](js-apis-bundleManager-dispatchInfo.md)> | Promise对象,返回[DispatchInfo](js-apis-bundleManager-dispatchInfo.md)信息。 | -**错误码:** - -错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 - **示例:** ```js diff --git a/zh-cn/application-dev/reference/apis/js-apis-installer.md b/zh-cn/application-dev/reference/apis/js-apis-installer.md index d50c9bcc1f319a6c3e30f558097ec82d23cedf53..93cab24807b7e0d633ce3f2c473254ff4c4d2f1a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-installer.md +++ b/zh-cn/application-dev/reference/apis/js-apis-installer.md @@ -35,10 +35,6 @@ getBundleInstaller(callback: AsyncCallback\): void; | -------- | ------------------------------------------------------------ | ---- | ------------------------------------------------------------ | | callback | AsyncCallback\<[BundleInstaller](js-apis-installer.md#BundleInstaller)> | 是 | 回调函数,获取BundleInstaller对象,err为undefined,data为获取到的BundleInstaller对象;否则为错误对象。 | -**错误码:** - -错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 - **示例:** ```ts @@ -72,10 +68,6 @@ getBundleInstaller(): Promise\; | ------------------------------------------------------------ | ------------------------------------ | | Promise\<[BundleInstaller](js-apis-installer.md#BundleInstaller)> | Promise对象,返回BundleInstaller对象。 | -**错误码:** - -错误码的详细介绍请参见[ohos.bundle错误码](../errorcodes/errorcode-bundle.md)。 - **示例:** ```ts @@ -277,10 +269,10 @@ try { **系统接口:** 此接口为系统接口,三方应用不支持调用 -| 参数名 | 类型 | 说明 | -| ---------- | ------ | ---------------- | -| moduleName | string | 应用程序模块名称。 | -| hashValue | string | 哈希值。 | +| 名称 | 类型 | 必填 | 说明 | +| ---------- | ------ | ---------------- | ---------------- | +| moduleName | string | 是 | 应用程序模块名称。 | +| hashValue | string | 是 | 哈希值。 | ## InstallParam @@ -290,10 +282,10 @@ try { **系统接口:** 此接口为系统接口,三方应用不支持调用 -| 参数名 | 类型 | 说明 | -| ------------------------------ | ------------------------------ | ------------------ | -| userId | number | 指示用户id,可使用[queryOsAccountLocalIdFromProcess](js-apis-osAccount.md#queryosaccountlocalidfromprocess9)获取当前进程所在用户。 | -| installFlag | number | 指示安装标志,枚举值:0:应用初次安装,1:应用覆盖安装。 | -| isKeepData | boolean | 卸载时是否保留数据目录。 | -| hashParams | Array<[HashParam](#hashparam)> | 哈希值参数。 | -| crowdtestDeadline| number |[众测](https://developer.huawei.com/consumer/cn/agconnect/crowd-test/)截止日期。 | \ No newline at end of file +| 名称 | 类型 | 必填 | 说明 | +| ------------------------------ | ------------------------------ | ------------------ | ------------------ | +| userId | number | 是 | 指示用户id,可使用[queryOsAccountLocalIdFromProcess](js-apis-osAccount.md#queryosaccountlocalidfromprocess9)获取当前进程所在用户。 | +| installFlag | number | 是 | 指示安装标志,枚举值:0:应用初次安装,1:应用覆盖安装。 | +| isKeepData | boolean | 是 | 卸载时是否保留数据目录。 | +| hashParams | Array<[HashParam](#hashparam)> | 是 | 哈希值参数。 | +| crowdtestDeadline| number | 是 |[众测](https://developer.huawei.com/consumer/cn/agconnect/crowd-test/)截止日期。 | \ No newline at end of file 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 781889f6be186064eeecd26f872906359efcc987..98544e3ab3a1a064d16159eb21c69e03b0dd8e29 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-zlib.md +++ b/zh-cn/application-dev/reference/apis/js-apis-zlib.md @@ -320,7 +320,7 @@ try { | 名称 | 类型 | 可读 | 可写 | 说明 | | -------- | ---------------- | ---- | ---- | ---------------------------------------------------------- | -| level | CompressLeve | 是 | 否 | 参考[zip.CompressLevel枚举定义](#zipcompresslevel)。 | +| level | CompressLevel | 是 | 否 | 参考[zip.CompressLevel枚举定义](#zipcompresslevel)。 | | memLevel | MemLevel | 是 | 否 | 参考[zip.MemLevel枚举定义](#zipmemlevel)。 | | strategy | CompressStrategy | 是 | 否 | 参考[zip.CompressStrategy枚举定义](#zipcompressstrategy)。 |