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 bacc0487bb11473a903a14c10f5c94501868a9aa..4d468a83ac15e8f6e33801c9e0b3cda3ab52de97 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)}`); });