标签:
require方法接受以下几种参数的传递:
var http = require(‘http‘);
http.createServer(function (request, response) {
response.writeHead(200, {‘Content-Type‘: ‘text/plain‘});
response.end(‘Hello World\n‘);
}).listen(8888);
console.log(‘Server running at http://127.0.0.1:8888/‘);
启动node
标签:
原文地址:http://www.cnblogs.com/pan-hello/p/4568485.html