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);
    })
});

相关文章:

  • 2021-05-22
  • 2021-11-07
  • 2021-07-27
  • 2021-05-09
  • 2021-10-01
  • 2022-12-23
  • 2021-09-09
  • 2021-11-29
猜你喜欢
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-12
  • 2022-02-21
  • 2021-10-31
相关资源
相似解决方案