code-for-vue-3-book icon indicating copy to clipboard operation
code-for-vue-3-book copied to clipboard

code 10-1代码错误

Open Zz-ZzzZ opened this issue 2 years ago • 0 comments

10-1的diff算法部分的第三个if分支的insert应为insert(oldStartVNode.el, container, oldEndVNode.el.nextSibling)

而提供的代码为insert(oldStartVNode.el, container, newEndVNode.el.nextSibling)

Zz-ZzzZ avatar Oct 11 '22 02:10 Zz-ZzzZ