nodejs告诉我 当我想执行job.cancel()时无法读取未定义的属性“取消”
var schedule = require('node-schedule');
test = schedule.scheduleJob({second: 2, hour:
dataA[0].on_h , minute: dataA[0].on_m, dayOfWeek:
timerSD.day}, function(){
console.log(now+': Timer automatic ON - SD: '+x+ "timer ID"+dataA[0].ID);
db.setStatus(x, 1);
});
test.cancel();