__dirname: A global variable that stores the file directory where the file resides
__filename: A global variable that stores a file name
Code:
Dirname.js
Console.log (__dirname);
Run Node Dirname.js
Output: D:\NODEJS\SRC
Code:
Dirname.js
Console.log (__filename);
Run Node Dirname.js
Output: D:\nodejs\src\dirname.js //output with path file name
Step.js Learning
http://blog.csdn.net/zhangxin09/article/details/13018739
MongoDB Learning
Http://www.runoob.com/nodejs/nodejs-mongodb.html
Node Plugin: node-schedule
Node Schedule
Http://www.cnblogs.com/ajun/p/3548259.html
If you want to say, "Run this feature at 20 points and 50 points per hour for the third Tuesday of every month, you will find that the node plan is more appropriate for your needs."
Const SCHEDULE = require (' Node-schedule ');
var j = schedule. Schedulejob (' all * * * * * ', function () {
Console.log ("Another minute passed")
});
Async Async Programming of Nodejs
Nodejs various plugins