提取网页里所有链接的方法

右键 审查元素 在console中输入
for(var a of document.getElementsByTagName('a')){
console.log(a.href)
}

posted @ 2021-10-11 10:01  我有清茶与酒  阅读(1260)  评论(0编辑  收藏  举报