标签: javascript jquery html dom
在Chrome中打开https://www.yahoo.com/,然后点击input - console
https://www.yahoo.com/
input
console
var as=document.getElementsByTagName('a'); for(var i=0;i<as.length;i++){ console.log(as[i]); }
现在所有132个锚元素都显示在chrome的控制台中,如何用js将解析后的锚元素保存在本地文件中?