📜  nodejs 每分钟执行一次 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:51.793000             🧑  作者: Mango

代码示例1
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);