未验证 提交 71cd4d77 编写于 作者: O openharmony_ci 提交者: Gitee

!13712 docs: API参考中示例代码单词statisticsp拼写错误

Merge pull request !13712 from qiuxiangdong/master
...@@ -46,7 +46,7 @@ batteryStats.getBatteryStats() ...@@ -46,7 +46,7 @@ batteryStats.getBatteryStats()
console.info('battery statistics info: ' + data); console.info('battery statistics info: ' + data);
}) })
.catch(err => { .catch(err => {
console.error('get battery statisitics failed, err: ' + err); console.error('get battery statistics failed, err: ' + err);
}); });
``` ```
...@@ -81,7 +81,7 @@ batteryStats.getBatteryStats((err, data) => { ...@@ -81,7 +81,7 @@ batteryStats.getBatteryStats((err, data) => {
if (typeof err === 'undefined') { if (typeof err === 'undefined') {
console.info('battery statistics info: ' + data); console.info('battery statistics info: ' + data);
} else { } else {
console.error('get battery statisitics failed, err: ' + err); console.error('get battery statistics failed, err: ' + err);
} }
}); });
``` ```
...@@ -123,7 +123,7 @@ try { ...@@ -123,7 +123,7 @@ try {
var value = batteryStats.getAppPowerValue(10021); var value = batteryStats.getAppPowerValue(10021);
console.info('battery statistics value of app is: ' + value); console.info('battery statistics value of app is: ' + value);
} catch(err) { } catch(err) {
console.error('get battery statisitics value of app failed, err: ' + err); console.error('get battery statistics value of app failed, err: ' + err);
} }
``` ```
...@@ -164,7 +164,7 @@ try { ...@@ -164,7 +164,7 @@ try {
var percent = batteryStats.getAppPowerPercent(10021); var percent = batteryStats.getAppPowerPercent(10021);
console.info('battery statistics percent of app is: ' + percent); console.info('battery statistics percent of app is: ' + percent);
} catch(err) { } catch(err) {
console.error('get battery statisitics percent of app failed, err: ' + err); console.error('get battery statistics percent of app failed, err: ' + err);
} }
``` ```
...@@ -205,7 +205,7 @@ try { ...@@ -205,7 +205,7 @@ try {
var value = batteryStats.getHardwareUnitPowerValue(ConsumptionType.CONSUMPTION_TYPE_SCREEN); var value = batteryStats.getHardwareUnitPowerValue(ConsumptionType.CONSUMPTION_TYPE_SCREEN);
console.info('battery statistics percent of hardware is: ' + percent); console.info('battery statistics percent of hardware is: ' + percent);
} catch(err) { } catch(err) {
console.error('get battery statisitics percent of hardware failed, err: ' + err); console.error('get battery statistics percent of hardware failed, err: ' + err);
} }
``` ```
...@@ -246,7 +246,7 @@ try { ...@@ -246,7 +246,7 @@ try {
var value = batteryStats.getHardwareUnitPowerPercent(ConsumptionType.CONSUMPTION_TYPE_SCREEN); var value = batteryStats.getHardwareUnitPowerPercent(ConsumptionType.CONSUMPTION_TYPE_SCREEN);
console.info('battery statistics percent of hardware is: ' + percent); console.info('battery statistics percent of hardware is: ' + percent);
} catch(err) { } catch(err) {
console.error('get battery statisitics percent of hardware failed, err: ' + err); console.error('get battery statistics percent of hardware failed, err: ' + err);
} }
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册