vue实例挂载的实现(compiler版本) 扑街前端 2020-07-20 439 阅读1分钟 vue中我们是通过$mount实例方法去挂载vm的,$mount方法在多个文件中都有定义。最终编译成render函数对el的处理 - 没有定义render函数尝试获取render函数 -- mountComponent() -- 渲染watchermountComponent方法