zoukankan      html  css  js  c++  java
  • DOM是什么

    UI—html—DOM(tree-structured representation、 manipulate)—Virtual DOM(component)

    Real DOM强调树状结构的整体;核心是树状结构的维护;

    Virtual DOM强调的是组件,核心是组件的构建、组合和维护;

    Real DOM

    First things first, DOM stands for “Document Object Model”. The DOM in simple words represents the UI of your application. Everytime there is a change in the state of your application UI, the DOM gets updated to represent that change. 

    Just to get things straight - DOM stands for Document Object Model and is an abstraction of a structured text. For web developers, this text is an HTML code, and the DOM is simply called HTML DOM. Elements of HTML become nodes in the DOM.

    So, while HTML is a text, the DOM is an in-memory representation of this text. 

    The HTML DOM provides an interface (API) to traverse and modify the nodes. It contains methods like getElementById or removeChild. We usually use JavaScript language to work with the DOM, because… Well, nobody knows why :). 

    The Virtual DOM is an abstraction of the HTML DOM. It is lightweight and detached from the browser-specific implementation details. Since the DOM itself was already an abstraction, the virtual DOM is, in fact, an abstraction of an abstraction. 

    https://www.cnblogs.com/feng9exe/p/10906496.html

  • 相关阅读:
    docker的网络服务
    想真正了解JAVA设计模式看着一篇就够了。 详解+代码实例
    再问你Java内存模型的时候别再给我讲堆栈方法区
    ssh爆破脚本
    ecshop3.0.0注入
    zabbix 安装配置以及漏洞检测脚本
    代理爬取
    selenium2使用记录
    初级AD域渗透系列
    用ftplib爆破FTP口令
  • 原文地址:https://www.cnblogs.com/feng9exe/p/11089039.html
Copyright © 2011-2022 走看看