Loading

摘要: /*使用Node.js原生HTTP模块和URL模块创建服务器并处理路由 */ var http = require('http'), url = require('url'); http.createServer(function(req, res){ var pathname = url.parse(req.url).pathname; if(pathname ... 阅读全文
posted @ 2017-10-22 21:13 Sherlock-Tang 阅读(753) 评论(0) 推荐(0) 编辑