From 060aa939f6de40e0590ddc99efeee4357881c32d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=82=A6?= Date: Wed, 8 Jun 2022 06:37:05 +0000 Subject: [PATCH] update zh-cn/application-dev/reference/apis/js-apis-power.md. Signed-off-by: sunyue --- zh-cn/application-dev/reference/apis/js-apis-power.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-power.md b/zh-cn/application-dev/reference/apis/js-apis-power.md index 66732917fe..4f0bbc49c9 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-power.md +++ b/zh-cn/application-dev/reference/apis/js-apis-power.md @@ -234,7 +234,7 @@ setPowerMode(mode: DevicePowerMode, callback: AsyncCallback<void>): void **示例:** ```js -power.setPowerMode(DevicePowerMode.MODE_PERFORMANCE, error => { +power.setPowerMode(power.DevicePowerMode.MODE_PERFORMANCE, error => { if (typeof error === "undefined") { console.info('set power mode to MODE_PERFORMANCE'); } else { @@ -271,7 +271,7 @@ setPowerMode(mode: DevicePowerMode): Promise<void> **示例:** ```js -power.setPowerMode(DevicePowerMode.MODE_PERFORMANCE) +power.setPowerMode(power.DevicePowerMode.MODE_PERFORMANCE) .then(() => { console.info('set power mode to MODE_PERFORMANCE'); }) -- GitLab