这里写自定义目录标题
// 引入http模块
var http = require('http');
//
http.createServer(function (request, response) {
// 设置响应头
response.writeHead(200, {'Content-Type': 'text/plain'});
// 表示给我们在页面上输出一句话并且结束响应
response.end('Hello World');
}).listen(8081);//端口
console.log('Server running at http://127.0.0.1:8081/');
get请求请求体可以为空
post请求请求体可以不为空