![](https://csdnimg.cn/release/download_crawler_static/86268863/bg11.jpg)
【1】给组件创建一个 watcher 实例
在 watcher 的构造函数中把这个组件的 watcher 放入 Dep.target(Dep 类的静态实例上)上,
然后调用 fn 函数(先调_render 再调_update)
【2】_render 函数(在当前组件的 watcher 的构造函数中调用的)的作用
render 函数挂在 vm.$options 上,render 函数是由 ast 产生的,vnode 是 render 函数产生的
(ast 和 vnode 的结构一样?可能只是在这里一样)
关于 ast 和 vnode 的关系:
https://blog.csdn.net/weixin_43690348/article/details/113742993