zoukankan      html  css  js  c++  java
  • get one webpage all links

    var arr=[];$.each(document.links,function(i,a){if($.inArray(a.href,arr)==-1){arr.push(a.href);}console.log(a.href);});arr.length

  • 相关阅读:
    3-8
    3-7
    3-5
    3-4
    3-3
    3-2
    3-1
    2-11
    2-10
    2-9
  • 原文地址:https://www.cnblogs.com/lexus/p/2486471.html
Copyright © 2011-2022 走看看