appendChild() = 자손 요소를 추가 removeChild() = 자손 요소를 삭제 let p = document.createElement('p'); document.body.appendChild(p); let div = document.querySelector('div') document.body.removeChild(div) replaceChild() = 자손 요소를 수정 let box01 = document.querySelector('.box01'); let title = document.querySelector('.title'); let h1 = document.querySelector('h1'); box01.replaceChild(h1,title) //box01.replaceChild(새로운 요소, 기존의 요소) //기존요소와 자리를 바꾸는 게 아니라 삭제됨 parentNode = 부모 요소의 노드를 반환 parentElement = 부모 요소를 반환 *조상 요소를...
#
appendChild
#
부모요소
#
삭제
#
선택자
#
수정
#
요소
#
자바스크립트
#
자손
#
자식요소
#
조상요소
#
반환
#
공백은_한칸
#
replaceChild
#
Child
#
childElementCount
#
childNodes
#
firstChild
#
firstElementCount
#
javaScript
#
lastChild
#
lastElementCount
#
removeChild
#
추가
원문 링크 : Child