html DOM導航

getElementByTagname()獲取所有相同標籤的節點列表,length表示節點的長度;

lastchild表示最後一個子節點,firstchild表示第一個子節點,parentnode表示父節點;

document.documentElement表示所有文檔;

document.body表示文檔的主體。

原文地址:https://www.cnblogs.com/Zhengxiaoxiao/p/10470823.html