Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第95题(2019-12-03):谈谈你对Virtual DOM 的内部工作原理的理解? #97

Open
qappleh opened this issue Dec 3, 2019 · 1 comment

Comments

@qappleh
Copy link
Owner

qappleh commented Dec 3, 2019

No description provided.

@ustchcl
Copy link

ustchcl commented Jun 21, 2020

框架所维护的Virtual DOM: 是一个虚拟DOM节点的树.
开发者所声明的UI, 被表达成这棵树.
框架根据这棵树, 渲染出真实DOM.
在UI变更时, 对树做diff, 判断其变化的部分, 然后将变化的部分刷新.

在flutter中, 甚至有三棵树, 一个是UI节点, 一个是状态, 一个是中间表述

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants