HttpPost("/power")

This commit is contained in:
zogodo
2020-07-03 21:18:29 +08:00
parent ca7fbd8bb2
commit 26f5688071
4 changed files with 80 additions and 80 deletions

View File

@@ -776,7 +776,7 @@ var chart_wth = 0;
var p = document.getElementById("p");
var w = document.getElementById("w");
function GetPowerRecord() {
HttpGet("/power", function (re) {
HttpPost("/power", function (re) {
re = re.replace(/'/g, '"');
var power = JSON.parse(re);
power_idx = power.idx + 1;