var http = require("http");
http.createServer(function(request,response){
response.writeHead(200,{'Content-Type':'text/plain'});
response.end('Hello World\n');
}).listen(8000);
console.log("Server running at http://localhost:8000");
转载请注明:谷谷点程序 » node.js创建一个简单的web应用