2013年6月30日

摘要: //Node.js标准库提供了http模块,其中封装了一个高效的http服务器和一个简易的http客户端//http.Server是一个基于事件的HTTP服务器,它的核心由Node.js下层c++部分实现,而接口由//Javascript封装,兼顾了高性能与简易性//http服务器var http = require('http');http.createServer(function(req,res){ res.writeHead(200,{'Content-Type','text/html'}); res.write('hello n 阅读全文

posted @ 2013-06-30 19:47 SmileCN 阅读(262) 评论(0) 推荐(0) 编辑