vue实例挂载的实现(compiler版本)

439 阅读1分钟

vue中我们是通过$mount实例方法去挂载vm的,$mount方法在多个文件中都有定义。

最终编译成render函数

对el的处理 -  没有定义render函数尝试获取render函数  -- mountComponent()   -- 渲染watcher


mountComponent方法