生命周期图
随着vue学习,生命周期图参考价值会越来越高。
- init events and lifecycle(初始化事件和生命周期)
- init injections or reactivity(初始注入和反应)
- has el option(具有el 选项)
- when vm. m o u n t ( e l ) i s c a l l e d ( v m . mount(el) is called(vm. mount(el)iscalled(vm.mount(el)被调用时)
- has template option(具有template选项)
- compile template into render function(将模板编译为长线函数)
- compile el’s outerHTML as template(将el的outerhtml编译为模板 )
- create vm. e l a n d r e p