摘要: vue运行机制: 当我们new Vue的时候,实际上在构造函数里 1.执行了一个init方法,init方法会初始化data,props,computed,watch,事件监听,派发生命周期钩子等等, 2.得到Vue实例后进行挂载$mount(最终转换成render),查看$mount方法的源码,$m 阅读全文