响应式 Object.defineProperty(obj, ‘name’, { get:()=> {}, set: () => {} })
模板引擎 with(this) { return _c() }
渲染 updateComponent
beforeCreate/created boforeMount/mounted beforeUpdate/updated beforeDestroy/destroyed
vuex
diff算法
vm._update(vnode) {
const prevVnode = vm._vnode
vm._vnode = vnode
if (!prevVnode) {
vm.$el = vm.patch(vm.$el,vnode)
} else {
vm.$el = vm.patch(prevVnode,vnode)
}
}
function updateComponent () {
vm._update(vm._render())
}