Node.js之HelloWorld!
源码示例(设文件保存为hello.js):var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World!\n');
}).listen(8124, "127.0.0.1");
...
原创
2018-07-08 19:43:20 ·
128 阅读 ·
0 评论