• 定时node-schedule 模块的使用


    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,可选)

  • 相关阅读:
    2016.10.09
    Httpie 进行web请求模拟
    Python-集合
    python-字典
    MySQL权限系统
    MySQL8.0安装以及介绍(二进制)
    数据库对象中英文介绍
    Python-字符串
    GIT安装部署
    Cobbler安装部署
  • 原文地址:https://www.cnblogs.com/yu-hailong/p/8624740.html
Copyright © 2020-2023  润新知