| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
jopen
11年前发布

Node.js中类似 crontab 的定时任务模块:node-schedule

node-schedule 是 Node.js 上一个类似 crontab 的定时任务模块。它可以让你在特定的日期安排执行工作(任意函数),带有可选的循环规则。

var schedule = require('node-schedule');    var j = schedule.scheduleJob('42 * * * *', function(){      console.log('The answer to life, the universe, and everything!');  });    And:    var j = schedule.scheduleJob('0 17 ? * 0,4-6', function(){      console.log('Today is recognized by Rebecca Black!');  });

项目主页:http://www.open-open.com/lib/view/home/1408674346928

 本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1408674346928.html
Node.js 开发 node-schedule