提取网页里面全部所有链接的方法 发表评论 右键 审查元素 在console中输入 for(var a of document.getElementsByTagName(‘a’)){ console.log(a.href) }