vue学习三:vue初始化的过程二(渲染、生命周期mounted---update)

首先看一下生命周期图:beforecreate到update 接下来介绍的是$mount src/platforms/web/web-runtime-with-compiler.js。mount的方法主要介绍: compileToFunctions是对我们最后生成的模板进行解析,生成render。 下钻到 createCompiler实现的是baseComple的三个方法 1.const ast
相关文章
相关标签/搜索