摘要: 请勿转载 谢谢 阅读全文
posted @ 2014-04-01 10:30 隋艳涛 阅读(1863) 评论(0) 推荐(0)
摘要: 服务器端代码var http = require('http'),io = require('socket.io'),fs = require('fs');//配置var config = {port : 8888}http = http.createServer(handler);http.listen(config.port);io = io.listen(http);function handler(req, res) {if(req.method=="GET"){}else if(req.method=="P 阅读全文
posted @ 2014-03-30 20:25 隋艳涛 阅读(345) 评论(1) 推荐(0)