toggle => setter => app组件渲染watcher update => nextTick => watcher.run => get => updateComponent => _.update => app组件渲染vnode patch => sameNode => patchVnode => children 不相等 => updateChildren => startVnode相同 => patchVnodecomponent组件占位符节点 => prepatch => updateChildComponent => update props => prop setter => helloworld 组件 进入 queue => prepatch 完成 => patchVnode (button ) => patchVnode文本节点toggle => app组件patch完成 => watcher.run()完成 => next quene
helloworld组件 渲染watcher执行run方法 => get => updateComponent => _.update => vnode patch => patchVnode => updateChildren (div 与 ul 的diff) => 进入 while循环 的 else => 创建新节点 => 移除旧节点 => patch完成 => run 完成
打断点调试了一下更加清晰了总结一下
老师 帮忙看下 总结得有没有问题 。 谢谢老师