后台返回时间字符串

This commit is contained in:
zogodo
2020-04-22 11:33:15 +08:00
parent 81dcea8dbc
commit 139f5e8263
4 changed files with 19 additions and 4 deletions

View File

@@ -593,6 +593,14 @@ HttpGet("/status", function (re) {
$("#info_mask").html(status.mask);
$("#info_gateway").html(status.gateway);
$("#uptime").html(status.up_time);
//var now = new Date()
//task_date.value = now.toLocaleDateString().replace(/\//g, '-');
//task_date.value = now.getFullYear() + '-' + now.getMonth() + '-' + now.getDate();
$("#task_date").value(status.date);
$("#task_time").value(status.time);
task_date.value = status.date;
});
//Menu-start