一、什么是DOM?
官方定义:
The Document Object Model (DOM) is an application programming interface (API) for html and XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated.
文档对象模型是用于HTML和XML文档的应用程序编程接口。它定义文档的逻辑结构,以及访问和操作文档的方式。