관리 메뉴

KorSA

Node 객체 - Node 관계 API (Section 24) 본문

Study Memos/JavaScript Front-End

Node 객체 - Node 관계 API (Section 24)

Praiv. 2020. 12. 15. 00:51
320x100

참고> opentutorials.org/course/1375/6699

 

1. firstChild: root tag와 그 다음 tag 사이에 줄바꿈, 공백 등이 있으면 #text가(Text 객체) 첫번째 child가 됨.

2. nextSibling, previousSibling, parentNode 등으로 Node와 Node 사이를 왔다갔다 할 수 있음.

728x90
728x90
Comments