更新时间:2023-02-22 10:49:03
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 :)