摘要: 新建一个名为“hello.js”文本文件,然后输入如下内容 1 //载入http模块 2 var http = require('http'); 3 //构建一个http服务器 4 var server = http.createServer(function(request,response){ 5 response.writeHead(200,{'Content-Type... 阅读全文
posted @ 2016-06-14 09:36 teafree 阅读(203) 评论(0) 推荐(0) 编辑