title:/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ swan.getBatteryInfo header:/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ develop nav:/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ api sidebar:/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ swan-getBatteryInfo

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ webUrl:/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ https://qft12m.smartapps.cn/swan-api/getBatteryInfo/getBatteryInfo


/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 基础库/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 3.30.2/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 开始支持,低版本需做兼容处理。

解释:支持在小程序内获取当前设备电量。

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 方法参数/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/

Object/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ object

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ object/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 参数说明/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/

|属性名/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |类型/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |必填/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 默认值/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |说明| |:——/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |:——/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |:——/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |:——|:——| |success/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |Function/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 否/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 接口调用成功的回调| |fail/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ Function/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 否/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |接口调用失败的回调函数| |complete/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ Function/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 否/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 接口调用结束的回调函数(调用成功、失败都会执行)|

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ success/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 回调函数参数:

|参数名/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |类型/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |说明| |——/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ ——/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ ——/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ | |level/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |string/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 设备电量,/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 范围为1-100| |isCharging/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ boolean/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ |/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 设备是否正在充电|

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 示例

在开发者工具中预览效果

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 扫码体验

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ #/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ webUrl:/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ https://qft12m.smartapps.cn/swan-api/getBatteryInfo/getBatteryInfo - 图1 /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 请使用百度APP扫码

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 图片示例

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/
/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ #/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ webUrl:/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ https://qft12m.smartapps.cn/swan-api/getBatteryInfo/getBatteryInfo - 图2 /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/
/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/
/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ #/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ webUrl:/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ https://qft12m.smartapps.cn/swan-api/getBatteryInfo/getBatteryInfo - 图3 /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/
/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/
/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ #/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ webUrl:/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ https://qft12m.smartapps.cn/swan-api/getBatteryInfo/getBatteryInfo - 图4 /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/
/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/

/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 代码示例/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/

*/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 在/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ js/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ 文件中

  1. Page({
  2. /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ getBatteryInfo()/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ {
  3. /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ swan.getBatteryInfo({
  4. /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ success:/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ res/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ =>/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ {
  5. /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ console.log('当前设备电量值:',/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ res.level);
  6. /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ console.log('当前设备是否正在充电:',/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ res.isCharging);
  7. /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ },
  8. /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ fail:/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ err/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ =>/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ {
  9. /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ console.log('getBatteryInfo/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ fail',/uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ err);
  10. /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ }
  11. /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ });
  12. /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ /uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys//uploads/projects/swan-docs/program-docs/docs/develop/api/device_sys/ }
  13. });