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 66732917fe8aab50caf93f8a2d0f390fcb5dd005..4f0bbc49c9627e1280a8a78f7befc241c048cf00 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'); })