查看nodejs安装了多少全局插件:npm ls -g -depth=1
nodejs 官网:https://nodejs.org/en/
nodejs中的module.exports 与exports.xx 深入理解:http://www.cnblogs.com/pigtail/archive/2013/01/14/2859555.html
nodejs的版本不同,代码的语法可能不一样 如:nodejs 4.3.0 与v0.12.0
一般情况下高版本的会兼容低版本的语法
//4.3.0
const http = require('http');
http.createServer( (request, response) => {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('Hello World\n');
}).listen(8124);
console.log('Server running at http://127.0.0.1:8124/');
//v0.12.0
var http=require('http');
http.createServer(function(req,res){
res.writeHead(200,{'Content-Type':'text/plain'});
res.end('Hello world\n');
}).listen(1337,'127.0.0.1');
console.log('Server running at http://127.0.0.1:1377/');
回调函数:http://blog.sina.com.cn/s/blog_9474609d01017cwb.html
查看浏览器的dns信息:chrome://net-internals/#dns
查看chrome浏览器的下载信息:chrome://downloads/