node.js 计划任务模块

npm install cron


var cronJob = require('cron').CronJob;
new cronJob('* * * * * *', function(){
    console.log('You will see this message every second');
}, null, true, "America/Los_Angeles");


你可能感兴趣的:(node.js,计划任务)