摘要:
Vue的核心思想 A.数据化驱动 B.组件化驱动:最强大的核心功能之一 1.定义组件(component) ①全局定义 a) 扩展组件 var component=Vue.extend({ template:'<div></div>' }); 注册组件 Vue.component('div-app' 阅读全文
摘要:
beforeCreate :组件实例刚刚被创建,属性都还没有 created:实例已经创建完成,属性已经绑定 beforeMount:模板编译之前 mounted:模板编译z之后 beforeUpdate:组件更新之前 updated:组件更新完毕 beforeDestroy:组件销毁前 destr 阅读全文