Example. Get the HTML content of the last child node of an <ul> element: Copy let x = document.getElementById("myList").lastChild.innerHTML;. Example list:.
確定! 回上一頁