摘要:
常用事件分类:onload(网页加载完)onclick(点击) onmouseover(鼠标放上) onmouseout(鼠标移开) onmousemove(鼠标移动) ondblclick(鼠标双击) onmousedown: 鼠标按下去的时候发生(注意此时鼠标还没有抬起来)onmou... 阅读全文
摘要:
利用dom获得页面元素节点 a) document.getElementById() //id获得元素节点对象 b) document.getElementsByTagName() //html标签获得元素节点对象(数组)可以通过一个节点找到他的下级节点 c) document.getElem... 阅读全文