代码:
var u = url.parse(urls);
http.get({
host: u['host'],
port: 80,
path: u['path']
},
function(res){
if (res.statusCode == 200){
//log();//要记下URL输出的内容
}else{
log(urls+":\n" + res.statusCode);
}
}
).on('error', function(e){
log("Got error: " + e.message);
});
怎么取得请求URL输出的文本啊?