URL 采集(Google)
in 奇技淫巧 with 2 comments

URL 采集(Google)

in 奇技淫巧 with 2 comments

google:

var h3 = document.getElementsByTagName('h3');
for(var i=0;i<h3.length;i++){
    var a = h3[i]. getElementsByTagName('a');
    console.log(a[0].href);
}

bing:

var h3 = document.getElementsByTagName('h2');
for(var i=0;i<h3.length;i++){
    var a = h3[i]. getElementsByTagName('a');
    console.log(a[0].href);
}
Responses
  1. 未知数

    nice !

    Reply
  2. 转载了这篇文章

    Reply