内容索引
- 文档概要
- Hello World
Hello World
- var http = require('http');
- http.createServer(function (request, response) {
- response.writeHead(200, {'Content-Type': 'text/plain'});
- response.end('Hello World\n');
- }).listen(8124);
- console.log('Server running at http://127.0.0.1:8124/');
- > node example.js
- Server running at http://127.0.0.1:8124/
