var box=document.getElementById("box") var box1=box.getAttributeNode("id") console.log(box1)
什么是dom
原文:http://www.cnblogs.com/wdz1/p/7474934.html