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

diff算法(vue react #42

Open
into-piece opened this issue Apr 26, 2021 · 0 comments
Open

diff算法(vue react #42

into-piece opened this issue Apr 26, 2021 · 0 comments

Comments

@into-piece
Copy link
Owner

聊一聊Diff算法

Vue2的核心Diff算法采用了双端比较的算法,同时从新旧children的两端开始进行比较,借助key值找到可复用的节点,再进行相关操作

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

No branches or pull requests

1 participant