From 801d2efba0e25fb1ff417a1c2b47d799cbad349b Mon Sep 17 00:00:00 2001 From: houdisheng Date: Mon, 25 Apr 2022 11:13:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: houdisheng --- .../device-usage-statistics-dev-guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-dev-guide.md b/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-dev-guide.md index d8c721eab9..aa15c3f610 100644 --- a/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-dev-guide.md +++ b/zh-cn/application-dev/device-usage-statistics/device-usage-statistics-dev-guide.md @@ -213,7 +213,7 @@ import stats from '@ohos.bundleState'; import stats from '@ohos.bundleState' // 异步方法promise方式 - stats.getRecentlyUsedModules(this.maxNum).then( res => { + stats.getRecentlyUsedModules(1000).then( res => { console.log('BUNDLE_ACTIVE getRecentlyUsedModules promise succeeded'); for (let i = 0; i < res.length; i++) { console.log('BUNDLE_ACTIVE getRecentlyUsedModules promise number : ' + (i + 1)); @@ -235,7 +235,7 @@ import stats from '@ohos.bundleState'; }); // 异步方法callback方式 - stats.getRecentlyUsedModules(this.maxNum,(err, res) => { + stats.getRecentlyUsedModules(1000,(err, res) => { if(err) { console.log('BUNDLE_ACTIVE getRecentlyUsedModules callback failed, because: ' + err.code); } else { -- GitLab