DOM
document object model(map)
家谱树---节点树
父 子 兄弟
元素节点 <div>
文本节点 内容
属性节点 value src
getElementById getElementByTagName
getElementByClassName
getAttribute
setAttribute
样式优先级:
*<标签<class<ID<行间
window.onload 页面加载完成的时候发生
this:当前发生事件的元素
DOM
document object model(map)
家谱树---节点树
父 子 兄弟
元素节点 <div>
文本节点 内容
属性节点 value src
getElementById getElementByTagName
getElementByClassName
getAttribute
setAttribute
样式优先级:
*<标签<class<ID<行间
window.onload 页面加载完成的时候发生
this:当前发生事件的元素