diff --git a/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-use-guide.md b/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-use-guide.md index 68fdf02768765624b98daf60e2b431bd3af11bf8..8df6e2ee0c5a87b0b400cc85ced09eeccc5fb6d8 100644 --- a/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-use-guide.md +++ b/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-use-guide.md @@ -277,7 +277,7 @@ import usageStatistics from '@ohos.resourceschedule.usageStatistics'; console.log('BUNDLE_ACTIVE queryModuleUsageRecords throw error, code is: ' + error.code + ',message is: ' + error.message); } - // 无maNum参数异步方法promise方式 + // 无maxNum参数异步方法promise方式 try{ usageStatistics.queryModuleUsageRecords().then( res => { console.log('BUNDLE_ACTIVE queryModuleUsageRecords promise succeeded'); @@ -309,7 +309,7 @@ import usageStatistics from '@ohos.resourceschedule.usageStatistics'; console.log('BUNDLE_ACTIVE queryModuleUsageRecords throw error, code is: ' + error.code + ',message is: ' + error.message); } - // 无maNum参数异步方法callback方式 + // 无maxNum参数异步方法callback方式 try{ usageStatistics.queryModuleUsageRecords((err, res) => { if(err) {