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 1f6fd7240d544c637071afe99294fc1e46af5ae1..423630408b85eba49db29a0c27c1d6438cf9e511 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
@@ -6,7 +6,7 @@
## 导入模块
```js
-import storagestatistics from "@ohos.storagestatistics";
+import storagestatistics from "@ohos.storageStatistics";
```
## 系统能力
@@ -61,9 +61,10 @@ getTotalSizeOfVolume(volumeUuid: string, callback:AsyncCallback<number>):v
let uuid = "";
storagestatistics.getTotalSizeOfVolume(uuid, function(error, number){
// do something
+ console.info("getTotalSizeOfVolume successfully:"+ number);
});
```
-
+
## storagestatistics.getFreeSizeOfVolume
@@ -115,22 +116,22 @@ getFreeSizeOfVolume(volumeUuid: string, callback:AsyncCallback<number>):vo
let uuid = "";
storagestatistics.getFreeSizeOfVolume(uuid, function(error, number){
// do something
+ console.info("getFreeSizeOfVolume successfully:"+ number);
});
```
-## storagestatistics.getBundleStats
+## storagestatistics.getBundleStats9+
-getBundleStats(volumeUuid: string, packageName:String, ): Promise<BundleStats>
+getBundleStats(packageName:String, ): Promise<BundleStats>
-异步获取指定卷上的应用存储状态,以promise方式返回。
+异步获取应用存储状态,以promise方式返回。
- 参数
| 参数名 | 类型 | 必填 | 说明 |
| ----------- | ------ | ---- | -------- |
- | volumeUuid | string | 是 | 卷id |
| packageName | string | 是 | 应用包名 |
-
+
- 返回值
| 类型 | 说明 |
@@ -140,35 +141,33 @@ getBundleStats(volumeUuid: string, packageName:String, ): Promise<BundleStat
- 示例
```js
- let uuid = "";
let packageName = "";
- storagestatistics.getBundleStats(uuid, packageName).then(function(BundleStats){
+ storagestatistics.getBundleStats(packageName).then(function(BundleStats){
console.info("getBundleStats successfully:"+ JSON.stringify(BundleStats));
}).catch(function(err){
console.info("getBundleStats failed with error:"+ err);
});
```
-## storagestatistics.getBundleStats
+## storagestatistics.getBundleStats9+
-getBundleStats(volumeUuid: string, callback:AsyncCallback<BundleStats>):void
+getBundleStats(callback:AsyncCallback<BundleStats>):void
-异步获取指定卷上的应用存储状态,以callback方式返回。
+异步获取应用存储状态,以callback方式返回。
- 参数
- | 参数名 | 类型 | 必填 | 说明 |
- | ---------- | --------------------------------------------------------- | ---- | ------------------------------------ |
- | volumeUuid | string | 是 | 卷id |
- | callback | callback:AsyncCallback<[Bundlestats](#bundlestats)> | 是 | 获取指定卷上的应用存储状态之后的回调 |
-
+ | 参数名 | 类型 | 必填 | 说明 |
+ | -------- | --------------------------------------------------------- | ---- | ------------------------------------ |
+ | callback | callback:AsyncCallback<[Bundlestats](#bundlestats)> | 是 | 获取指定卷上的应用存储状态之后的回调 |
+
- 示例
```js
- let uuid = "";
let packageName = "";
- storagestatistics.getBundleStats(uuid, packageName, function(error, BundleStats){
+ storagestatistics.getBundleStats(packageName, function(error, BundleStats){
// do something
+ console.info("getBundleStats successfully:"+ JSON.stringify(BundleStats));
});
```