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 4d1aa7ac1986905e00613540ca932a9e10b2bb92..e60abcd85ced6e0bda1b55c5974b5a2a8f831659 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-update.md +++ b/zh-cn/application-dev/reference/apis/js-apis-update.md @@ -349,7 +349,7 @@ updater.getCurrentVersionInfo().then(info => { ### getCurrentVersionDescription -getCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: AsyncCallback\>): void; +getCurrentVersionDescription(descriptionOptions: DescriptionOptions, callback: AsyncCallback\>): void 获取当前版本描述文件。使用callback异步回调。 @@ -381,7 +381,7 @@ updater.getCurrentVersionDescription(descriptionOptions, (err, info) => { ### getCurrentVersionDescription -getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise\>; +getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise\> 获取当前版本描述文件。使用Promise异步回调。 @@ -419,7 +419,7 @@ updater.getCurrentVersionDescription(descriptionOptions).then(info => { ### getTaskInfo -getCurrentVersionDescription(descriptionOptions: DescriptionOptions): Promise>; +getTaskInfo(callback: AsyncCallback\): void 获取升级任务信息。使用callback异步回调。