获取元素
- getElementById()
- getElementsByClass()
- getElementsByTagName
- getElementsByName
node属性
前、后、父、子
- previousSibling
- nextSibling
- parentNode
- childNode
- children
- firstChild
- lastChild
操作
- appendChild
- insertBefore
- removeChild
- replaceChild
- innerHtml
- innerText
创建
- CreateElement
Attribute
- getAttribute
- setAttribute
- removeAttribute
- hasAttribute
原文地址:https://www.cnblogs.com/mcad/p/10765670.html
时间: 2024-11-07 15:42:05