angular.module('app').filter('trustHtml', ($sce) => {
  
  return (html) => {
    if(typeof(html)=="object"){
      return html;
    }
    return $sce.trustAsHtml(html||"");
  }
});

 


request({'url':'https://www.google.com',
'proxy':'203.114.110.83:8080'}, function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
console.log(error);
})

*
var options = {
host: '199.195.253.124',
port: 3128,
path: "http://www.google.com",
headers: {
Host: "www.google.com"
}
};
http.get(options, function(res) {
console.log(res);
res.pipe(process.stdout);
});*/

相关文章:

  • 2021-11-03
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2021-07-09
  • 2021-07-19
猜你喜欢
  • 2021-07-24
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案