diff --git a/zh-cn/application-dev/reference/apis/js-apis-document.md b/zh-cn/application-dev/reference/apis/js-apis-document.md index 805b7039bbff3b483b3ab883b4c240b22336192d..55565aaaffc0a8428039bfcdc37946b226da7c49 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-document.md +++ b/zh-cn/application-dev/reference/apis/js-apis-document.md @@ -85,7 +85,7 @@ choose(types:string[], callback:AsyncCallback<string>): void ## document.show -show(uri:string, types:string):Promise<void> +show(uri:string, type:string):Promise<void> 异步打开URI对应的文件,使用promise形式返回结果。 @@ -96,7 +96,7 @@ show(uri:string, types:string):Promise<void> | 参数 | 类型 | 必填 | 说明 | | ---- | ------ | ---- | ---------------------------- | | uri | string | 是 | 待打开的文件URI | - | types | string | 是 | 待打开文件的类型 | + | type | string | 是 | 待打开文件的类型 | - 返回值: @@ -107,14 +107,14 @@ show(uri:string, types:string):Promise<void> - 示例: ```js - let types = ""; + let type = ""; let uri = ""; - document.show(uri, types); + document.show(uri, type); ``` ## document.show -show(uri:string, types:string, callback:AsyncCallback<void>): void +show(uri:string, type:string, callback:AsyncCallback<void>): void 异步打开URI对应的文件,使用callback形式返回结果。 @@ -125,15 +125,15 @@ show(uri:string, types:string, callback:AsyncCallback<void>): void | 参数名 | 类型 | 必填 | 说明 | | -------- | --------------------------- | ---- | ---------------------------- | | uri | string | 是 | 待打开的文件URI | - | types | string | 是 | 待打开文件的类型 | + | type | string | 是 | 待打开文件的类型 | | callback | AsyncCallback<void> | 是 | 异步打开uri对应文件(注:当前返回错误码) | - 示例: ```js - let types = ""; + let type = ""; let uri = ""; - document.show(uri, types, function(err) { + document.show(uri, type, function(err) { //do something }); ``` diff --git a/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md b/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md index c8429742e2a6ff1e0812bc4cf2dfb8d25fe81fdd..255ec5792603390e1eb64cd9e8569c0af89f8d51 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md +++ b/zh-cn/application-dev/reference/apis/js-apis-securityLabel.md @@ -79,7 +79,7 @@ setSecurityLabel(path:string, type:dataLevel, callback: AsyncCallback<void> ``` ## securityLabel.setSecurityLabelSync -setSecurityLabelSync(path:string, dataLevel:string):void +setSecurityLabelSync(path:string, type:dataLevel):void 以同步方法设置数据标签。 diff --git a/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md b/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md index 498e21eeaa2b0f6ca0561f8ae61881c4c0291123..511e73ec6f4c11b7bd1d2fa679dc6749fcd3a387 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md +++ b/zh-cn/application-dev/reference/apis/js-apis-storage-statistics.md @@ -212,7 +212,7 @@ getBundleStats(packageName: string, callback: AsyncCallback<BundleStats>) ## storagestatistics.getCurrentBundleStats9+ -getCurrentBundleStats(): Promise +getCurrentBundleStats(): Promise<BundleStats> 第三方应用异步获取占用空间,以promise方式返回。 @@ -233,7 +233,7 @@ getCurrentBundleStats(): Promise ## storagestatistics.getCurrentBundleStats9+ -getCurrentBundleStats(callback: AsyncCallback): void +getCurrentBundleStats(callback: AsyncCallback<BundleStats>): void 第三方应用异步获取占用空间,以callback方式返回。 @@ -258,7 +258,7 @@ getCurrentBundleStats(callback: AsyncCallback): void ## BundleStats9+ -**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。 +**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。
该接口为系统接口,三方应用不支持调用 - 属性 @@ -274,7 +274,7 @@ getCurrentBundleStats(callback: AsyncCallback): void ## storagestatistics.getTotalSize9+ -getTotalSize(): Promise +getTotalSize(): Promise<number> 获取内卡的总空间大小,以promise方式返回。 @@ -299,7 +299,7 @@ getTotalSize(): Promise ## storagestatistics.getTotalSize9+ -getTotalSize(callback: AsyncCallback): void +getTotalSize(callback: AsyncCallback<number>): void 获取内卡的总空间大小,以callback方式返回。 @@ -327,7 +327,7 @@ getTotalSize(callback: AsyncCallback): void ## storagestatistics.getFreeSize9+ -getFreeSize(): Promise +getFreeSize(): Promise<number> 获取内卡的可用空间大小,以promise方式返回。 @@ -353,7 +353,7 @@ getFreeSize(): Promise ## storagestatistics.getFreeSize9+ -getFreeSize(callback: AsyncCallback): void +getFreeSize(callback: AsyncCallback<number>): void 获取内卡的可用空间大小,以callback方式返回。 @@ -439,7 +439,7 @@ getSystemSize(callback:AsyncCallback<number>):void ## storagestatistics.getUserStorageStats9+ -getUserStorageStats(userId?: number): Promise<StorageStats> +getUserStorageStats(userId: number): Promise<StorageStats> 异步获取用户各类别数据大小,以promise方式返回。 @@ -474,7 +474,7 @@ getUserStorageStats(userId?: number): Promise<StorageStats> ## storagestatistics.getUserStorageStats9+ -getUserStorageStats(userId?: number, callback:AsyncCallback<StorageStats>):void +getUserStorageStats(userId: number, callback:AsyncCallback<StorageStats>):void 异步获取用户各类别数据大小,以callback方式返回。 @@ -505,7 +505,7 @@ getUserStorageStats(userId?: number, callback:AsyncCallback<StorageStats>) ## StorageStats9+ -**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。 +**系统能力**:以下各项对应的系统能力均为SystemCapability.FileManagement.StorageService.SpatialStatistics。
该接口为系统接口,三方应用不支持调用 - 属性