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并运行:)
欢迎分享,转载请注明来源:内存溢出
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并运行:)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)