摘要: diff算法(虚拟dom会生成两个节点如c1,c2) 图1 vue3 diff算法原码地址: https://github.com/vuejs/core 1. diff 算法主要是说renderer.ts中patchChildren这段代码逻辑,如下: 2. diff算法排序分为无key时diff算 阅读全文
posted @ 2023-07-06 16:20 TheYouth 阅读(119) 评论(0) 推荐(0) 编辑