for(i=0;i<=document.getElementsByTagName("a").length;i++){
console.log(document.getElementsByTagName("a")[i].href); //输出该页面的所有链接。
}

 

获取文本内容

var text = $('.content').text();console.log(text);

  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
  • 2022-01-29
  • 2021-12-27
猜你喜欢
  • 2021-07-03
  • 2022-12-23
  • 2021-05-22
  • 2022-02-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案