 红框中的代码 `oldEndVNode = newChildren[--oldEndidx]` 应该得改成 `oldEndVNode = oldChildren[--oldEndidx]` (在261页中也为此代码)