vue 流程图
2018-07-31 10:24:13 0 举报
vue data流程
作者其他创作
大纲/内容
initLifecycle(vm)
mergeOptions()
vm.$mount(vm.$options.el)
initProvide(vm)
start
vm.$options.el?
if (\"development\" !== 'production' && !(this instanceof Vue) ) { warn('Vue is a constructor and should be called with the `new` keyword'); }
this._init(options)
initState(vm)
end
initRender(vm)
initEvents(vm)
Y
options && options._isComponent?
initProxy()
N
备注:主要就是为了加工所需要的vue对象(暂且这么叫),即:vm.$options
initInjections(vm)
new Vue({el: '#demo'})
0 条评论
下一页