var http=require('http');
var querystring = require('querystring');
var util = require('util');
http.createServer(function(req,res){
var post='';
req.on('data',function(chunk){
post+=chunk;
});
req.on('end',function(){
post=querystring.parse(post);
// console.log('......'+post) 1.
res.end();
console.log(post) // 2
});
}).listen(3000);
我写个post表单请求一次,但怎么打印两次post 1处打印两个相同字符{xxx:xxx} 2处打印字符为{xxx:xxx}{}
谁能解释一下