From d5fc95b881dc6f58139af7e1ea2e27ce787da679 Mon Sep 17 00:00:00 2001 From: worldants Date: Fri, 17 Jun 2022 10:22:06 +0800 Subject: [PATCH] Signed-off-by: worldants --- zh-cn/application-dev/reference/apis/js-apis-update.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 ed2400619f..9e8c9c5ea4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-update.md +++ b/zh-cn/application-dev/reference/apis/js-apis-update.md @@ -134,7 +134,7 @@ getNewVersionInfo(callback: AsyncCallback\): void **示例:** ``` -updater.getNewVersionInfo(info => { +updater.getNewVersionInfo(err, info => { console.log("getNewVersionInfo success " + info.status); console.log(`info versionName = ` + info.checkResults[0].versionName); console.log(`info versionCode = ` + info.checkResults[0].versionCode); @@ -185,7 +185,7 @@ checkNewVersion(callback: AsyncCallback\): void **示例:** ``` -updater.checkNewVersion(info => { +updater.checkNewVersion(err, info => { console.log("checkNewVersion success " + info.status); console.log(`info versionName = ` + info.checkResults[0].versionName); console.log(`info versionCode = ` + info.checkResults[0].versionCode); @@ -284,7 +284,7 @@ rebootAndCleanUserData(callback: AsyncCallback\): void **示例:** ``` -updater.rebootAndCleanUserData(result => { +updater.rebootAndCleanUserData(err, result => { console.log("rebootAndCleanUserData ", result) }); ``` @@ -330,7 +330,7 @@ applyNewVersion(callback: AsyncCallback\): void **示例:** ``` -updater.applyNewVersion(result => { +updater.applyNewVersion(err, result => { console.log("applyNewVersion ", result) }); ``` @@ -458,7 +458,7 @@ getUpdatePolicy(callback: AsyncCallback\): void **示例:** ``` -updater.getUpdatePolicy(policy => { +updater.getUpdatePolicy(err, policy => { console.log("getUpdatePolicy success"); console.log(`policy autoDownload = ` + policy.autoDownload); console.log(`policy autoDownloadNet = ` + policy.autoDownloadNet); -- GitLab