摘要:
1 监听事件: 2 传统监听事件: 3 添加监听事件: 4 elementTarget.onclick = function(){} 5 移除监听事件: 6 elementTarget.onclick = function(){ 7 elementTarget.onclick = null; //当 阅读全文
摘要:
1 事件操作: 2 onclick //鼠标点击触发事件 3 onmouseover //鼠标经过事件 4 onmouseout //鼠标离开触发 5 onfocus //鼠标获得焦点触发 6 onblur //鼠标失去焦点触发 7 onmousemove //鼠标移动触发 8 onmouseup 阅读全文
摘要:
1 节点:节点就是w3c推荐的处理可扩展标记语言(HTML或者xml)的标准编程接口,可以通过这些dom接口可以改变网页内容,结构和样式; 2 节点类型: 3 元素节点:nodetype=1; 4 属性节点:nodeTyep=2; 5 文本节点:nodeTyep=3;//(文字,空格,换行) 6 获 阅读全文