JS DOM用不同方法獲取節點及對節點插入、複製和移除

操作節點的方法 appendChild() insertBefore() replaceChild() cloneNode() normalize() splitText()     sppendChild()  追加子元素 .firstElementChild()  第一個子元素節點 返回值是被操作的那個子節點 <!DOCTYPE html> <html lang="en"> <head>
相關文章
相關標籤/搜索