var?http?=?require('http');
http.createServer(function(req,res){
????res.writeHead(200,{'Content-Type':'text/plain'});
????res.end("Hello?World\n");
}).listen(1370,'127.0.0.1');
console.log('Server?running?at?http://127.0.0.1:1337/');
NodeJs搭建 請(qǐng)問(wèn)控制臺(tái)顯示http://127.0.0.1:1337/為什么在瀏覽器訪問(wèn)不到呢
呆呆呆
2017-06-29 10:49:22