Computer Science/Web
-
DOM과 Virtual DOMComputer Science/Web 2022. 3. 2. 17:53
DOM(Document Object Model) DOM의 개념 문서 객체 모델(The Document Object Model, 이하 DOM)은 HTML, XML 문서의 프로그래밍 interface이다. DOM은 문서의 구조화된 표현(structured representation)을 제공하며 프로그래밍 언어가 DOM 구조에 접근할 수 있는 방법을 제공하여 그들이 문서 구조, 스타일, 내용 등을 변경할 수 있게 돕는다. DOM은 nodes와 objects로 문서를 표현한다. 이들은 웹 페이지를 스크립트 또는 프로그래밍 언어들에서 사용될 수 있게 연결시켜주는 역할을 담당한다. 출처 https://developer.mozilla.org/ko/docs/Web/API/Document_Object_Model/Intr..