Beginning Node.js is your step-by-step guide to learning all the aspects of creating maintainable Node.js applications. You will see how Node.js is focused on creating high-performing, highly-scalable websites, and how easy it is to get started. Man
node-schedule 是 Node.js 上一个类似 crontab 的定时任务模块。
示例代码:
var schedule = require('node-schedule');
var date = new Date(2012, 11, 21, 5, 30, 0);
var j = schedule.scheduleJob(date, function(){
console.log('The world is going to end today.');
});
1.首先肯定是要安装Node.JS
windows cmd依次输入如下命令:
cd C:\Program Files\nodejs\
npm install -g express
npm install -g express-generator
2.创建一个示例工程
windows cmd依次输入如下命令:
cd C:\Program Files\nodejs\node_global
express -e microblog //即ejs,-j(即jade)
cd microblog
npm i