[Javascript] append와 appendChild의 차이

Jin Lee·2022년 3월 25일
0

태그(Node 객체)넣을거면 appendChild, 문자열 넣을거면 append

append랑 appendChild 했을 때 보이는 시점 -> html에 붙어 있는가
html을 캔버스를 큰 도화지라고 생각하고 여기에 색종이들을 붙였을때 우리가 볼 수 있다고 하면
append나 appendChild을 붙여 무엇을 만든다고 했을때 최종적으로는 이 색종이 조각들이 html에 붙어야 우리가 브라우저 상에서 확인 가능함

ref)
1. https://webruden.tistory.com/634

profile
깃허브 : https://github.com/jinlee9270

0개의 댓글