定时器

module.exports = [{
interval: '10s',
immediate: true,
handle: () => {
console.log("这是每隔10秒输出的内容");
}
}, {
cron: '*/1 * * * *',
handle: 'test/index/say',
type: 'all',
immediate:true//是否立即执行
}]

你可能感兴趣的:(定时器)