添加定时任务OK

This commit is contained in:
zogodo
2019-12-26 22:27:57 +08:00
parent 0a6f32c1ac
commit 82f9380202
3 changed files with 20 additions and 10 deletions

View File

@@ -451,10 +451,15 @@ function GetTimedTask() {
}
function AddTimedTask() {
var prs_time = Math.round(new Date() / 1000);
var sec = document.getElementById("task_time").value;
prs_time = prs_time + parseInt(sec);
var cmd = prs_time + " 4 0"
HttpPost("/task", function (re) {
alert(re);
}, sec);
}, cmd);
}
</script>