摘要:
var req = http.get(url,function(res){ res.setEncoding('utf-8'); var html = '' res.on('data',function(data){ html+=data.toString(); }).on('end',function(){ console.log(html... 阅读全文
posted @ 2013-12-24 20:46
HughTan
阅读(2306)
评论(0)
推荐(0)
摘要:
var timeout_wrapper = function (req) { return function () { // do some logging, cleaning, etc. depending on req req.abort(); };};但这种可能不够灵活,更高级的: var timeout_wrapper = function ... 阅读全文
posted @ 2013-12-24 17:14
HughTan
阅读(973)
评论(0)
推荐(0)

浙公网安备 33010602011771号