提交 b53da582 编写于 作者: Q qiang

docs: uni.getBatteryInfo add example code

上级 5dfa15f7
......@@ -26,3 +26,13 @@
|:-|:-|:-|
|level|Number|设备电量,范围 1 - 100|
|isCharging|Boolean|是否正在充电中|
**示例代码**
```js
uni.getBatteryInfo({
success: (res) => {
console.log(res)
}
})
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册