未验证 提交 060aa939 编写于 作者: 孙悦 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-power.md.

Signed-off-by: Nsunyue <sunyue77@h-partners.com>
上级 86518d4e
......@@ -234,7 +234,7 @@ setPowerMode(mode: DevicePowerMode, callback: AsyncCallback&lt;void&gt;): 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&lt;void&gt;
**示例:**
```js
power.setPowerMode(DevicePowerMode.MODE_PERFORMANCE)
power.setPowerMode(power.DevicePowerMode.MODE_PERFORMANCE)
.then(() => {
console.info('set power mode to MODE_PERFORMANCE');
})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册