diff --git a/zh-cn/application-dev/reference/apis/js-apis-deviceUsageStatistics.md b/zh-cn/application-dev/reference/apis/js-apis-deviceUsageStatistics.md index 6326fe2ff679d994828c19e8755c329f45640387..3b8dcf260a6cbae98c9b724a037a2222ad478812 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-deviceUsageStatistics.md +++ b/zh-cn/application-dev/reference/apis/js-apis-deviceUsageStatistics.md @@ -405,7 +405,7 @@ queryCurrentBundleActiveStates(begin: number, end: number): Promise<Array< ## bundleState.getRecentlyUsedModules9+ -getRecentlyUsedModules(maxNum: number): Promise<Array<BundleActiveModuleInfo>> +getRecentlyUsedModules(maxNum?: number): Promise<Array<BundleActiveModuleInfo>> 据maxNum,查询FA使用记录,使用Promise形式返回不超过maxNum条FA使用记录,FA使用记录由近及远排序,maxNum最大为1000。 @@ -452,7 +452,7 @@ getRecentlyUsedModules(maxNum: number): Promise<Array<BundleActiveModuleIn ## bundleState.getRecentlyUsedModules9+ -getRecentlyUsedModules(maxNum: number, callback: AsyncCallback<Array<BundleActiveModuleInfo>>): void +getRecentlyUsedModules(maxNum?: number, callback: AsyncCallback<Array<BundleActiveModuleInfo>>): void 查询FA使用记录。使用CallBack形式返回数量最大不超过maxNum设置的值,FA使用记录由近及远排序,maxNum最大为1000。