createElement() to create a new HTML element and attach it to the DOM tree. ... The following code adds two li elements to the ul : let li = document.
確定! 回上一頁