/**
* Created with JetBrains WebStorm.
* User: liangxinglei
* Date: 14-2-17
* Time: 上午9:43
* To change this template use File | Settings | File Templates.
*/
var http = require('http');
var server = http.createServer(function (req, res) {
res.writeHead(200, {'Content-type': "text/plain;charset=UTF-8"}); // 设置编码
res.end("这是我的第一个Node.js程序");
});
server.listen(8000);
阅读(1710) | 评论(0) | 转发(1) |