使用node 实现经典的'Hello World'
使用node 实现经典的'Hello World':
var http = require('http');
http.createServer(function(request,response){
response.writeHead(200,{'Content-Type':'text/plain'});
response.write('Hello World\n');
response.end();
}).listen(8124);
console.log('Server running at http://127.0.0.1');