dom2

createElemenbt

appendChild

getAttribute

setAttribute

常见使用方式

修改样式(  )

document.querySekector().style.coloe = "red"

getComputedStyle

批量修改    document.creatELement(‘style’)

 class操作

事件  

事件冒泡  事件开始时由最具体的元素接收,然后逐级向上传播到较为不具体的元素     

事件捕获   不太具体的节点更早接受事件,而最具体

DOM事件流

div.id=box

 thx

原文地址:https://www.cnblogs.com/beijingdhy/p/8528475.html