From 703011fb0d55e91039fdb3ef2e200f1e63e46e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=B5=B7?= Date: Thu, 14 Jul 2022 12:41:42 +0000 Subject: [PATCH] =?UTF-8?q?Description:=20Fix=20ota=20demo=20Signed-off-by?= =?UTF-8?q?:=20=E6=B1=9F=E6=B5=B7=20https://gitee.c?= =?UTF-8?q?om/openharmony/docs/issues/I5H68B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zh-cn/application-dev/reference/apis/js-apis-update.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-update.md b/zh-cn/application-dev/reference/apis/js-apis-update.md index bacc0487bb..4d468a83ac 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-update.md +++ b/zh-cn/application-dev/reference/apis/js-apis-update.md @@ -776,7 +776,7 @@ let policy = { autoUpgradePeriods: [ { start: 120, end: 240 } ] // 自动升级时间段,用分钟表示 } updater.setUpgradePolicy(policy, (err, value) => { - console.log(`setUpgradePolicy result: ${value?}`); + console.log(`setUpgradePolicy result: ${value}`); }); ``` @@ -811,7 +811,7 @@ let policy = { autoUpgradePeriods: [ { start: 120, end: 240 } ] // 自动升级时间段,用分钟表示 } updater.setUpgradePolicy(policy).then(result => { - console.log(`setUpgradePolicy &{result}`); + console.log(`setUpgradePolicy ${result}`); }).catch(err => { console.log(`setUpgradePolicy promise error ${JSON.stringify(err)}`); }); -- GitLab