node-schedule 定时器
emer 发布于 2018-6-28 10:42 2308 次阅读
const schedule = require('node-schedule');
const rule = new schedule.RecurrenceRule();
schedule.scheduleJob("/2 *", () => {
console.log("11");
});
每隔两秒调用一次
emer 发布于 2018-6-28 10:42 2308 次阅读
const schedule = require('node-schedule');
const rule = new schedule.RecurrenceRule();
schedule.scheduleJob("/2 *", () => {
console.log("11");
});
每隔两秒调用一次