mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-13 13:38:14 +08:00
添加定时任务OK
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user