CSS&JS/👀Study and Copy
cloneNode(true)를 했을 때와 그냥 appendChild만 했을 때 차이
arancia_
2020. 1. 28. 14:45
그리고 lastChild와 lastElementChild의 차이
참고 : https://www.w3schools.com/jsref/met_node_clonenode.asp
HTML DOM cloneNode Method
HTML DOM cloneNode() Method Element Object Example Copy a
- element from one list to another: // Get the last
- element ("Milk") of
- with id="myList2" var itm = document.getElementById("myList2").lastChild; // Copy the
- element and its child
www.w3schools.com
- element and its child