dom2

createElemenbt

appendChild

getAttribute

setAttribute

常见使用方式

修改样式(  )

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

getComputedStyle

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

 class操作

事件  

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

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

DOM事件流

div.id=box

 thx

posted @ 2018-03-08 14:57  啊董在路上  阅读(75)  评论(0编辑  收藏  举报