定时node-schedule 模块的使用
2024-09-02 11:29:55
You can install using npm.
npm install node-schedule
var schedule = require('node-schedule'); var j = schedule.scheduleJob('42 * * * *', function(){
console.log('The answer to life, the universe, and everything!');
});
42分钟执行一次
* * * * * *
┬┬┬┬┬┬
││││││
│││││└星期(0 - 7)(0或7日)
││││└─────月(1 - 12)
│││└──────────天月(1 - 31)
││└───────────────小时(0 - 23)
│└────────────────────分钟(0 - 59)
└─────────────────────────秒(0 - 59,可选)
最新文章
- powershell开源新闻及简介
- SQL Server安全(3/11):主体和安全对象(Principals and Securables)
- 自然语言17_Chinking with NLTK
- MVC HtmlHelper用法(一)@Html.BeginForm的使用总结
- PHP内核探索:哈希碰撞攻击是什么?
- [原创]Devexpress XtraReports 系列 9 创建邮件合并报表
- 【Todo】ipcs命令学习
- BZOJ1603: [Usaco2008 Oct]打谷机
- SCGHR_存储过程(eSP_IDChangeStart)_政治面貌为什么不能正确更新
- storm启动流程
- RegexOptions.Compiled性能
- 贪心算法-找零钱(C#实现)
- 编译cvaux错误的原因
- Error creating bean with name 'com.you.user.dao.StudentDaoTest': Injection of autowired dependencies
- fprintf中使用stderr
- CSS3 水平翻转
- Vue技巧
- SerialPort类的用法与示例
- is-a,has-a,like-a是什么 sql server中,N''表示什么意思? 关于SQL SERVER的N前缀的理解
- 用AT命令调试调制解调器