nodejs的最简单示例代码
发布于 10 年前 作者 itfanr 7818 次浏览 最后一次编辑是 8 年前
var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World\n');
}).listen(1337, "127.0.0.1");
console.log('Server running at http://127.0.0.1:1337/');
回到顶部