node

var http = require("http");

http.createServer(function(request, response) {

response.writeHead(200, {"Content-Type": "text/plain"});

response.write("test nodjs");

response.end();

}).listen(8899);

console.log("nodejs start listen 8899 port!");

你可能感兴趣的:(node)