You need to sign in or sign up before continuing.
提交 801d2efb 编写于 作者: H houdisheng

修改文档细节

Signed-off-by: Nhoudisheng <houdisheng@huawei.com>
上级 41274494
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册