通过Node JS实现一个简单网页服务器。、
通过浏览器打开网页输入localhost:8888访问Node_server,访问到有hello world的网页
//代码需运行在Node.JS环境
var http = require('http');
//返回一个http.Server实例
http.createServer(function(request,response){
response.writeHead(200,{'Content-Type':'text/plain'});
response.end('Hello World!');
}).listen(8888);//监听8888端口
console.log('Server running at http://127.0.0.1:8888/');