更新时间:2023-02-22 11:02:24
var minutes = 5, the_interval = minutes * 60 * 1000;
setInterval(function() {
console.log("I am doing my 5 minutes check");
// do your stuff here
}, the_interval);
将该代码另存为node_regular_job.js并运行:)
Save that code as node_regular_job.js and run it :)