http.get用法

http.get(`http://wwwlren.org?jds=$`,(res2)=>{
       console.log(res2.statusCode ==200);
        let resData="";
        res2.on('data',(data)=>{
          resData+=data;
        }); 
        res2.on('end',()=>{
           let jdata=JSON.parse(resData);
           console.log(jdata);
        });
    }).on('error',(err)=>{
       console.log(err );
    });