📜  电池百分比js - Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:04.855000             🧑  作者: Mango

代码示例1
navigator.getBattery()
  .then(function(battery) {
    console.log(battery.level);
});