獲取元素 getElementById() getElementsByClass() getElementsByTagName getElementsByName node屬性 前、後、父、子 previousSibling nextSibling parentNode childNode chil ...
獲取元素
- getElementById()
- getElementsByClass()
- getElementsByTagName
- getElementsByName
node屬性
前、後、父、子
- previousSibling
- nextSibling
- parentNode
- childNode
- children
- firstChild
- lastChild
操作
- appendChild
- insertBefore
- removeChild
- replaceChild
- innerHtml
- innerText
創建
- CreateElement
Attribute
- getAttribute
- setAttribute
- removeAttribute
- hasAttribute