- beforeCreate 创建之前
- created 创建
- beforeMount 挂在之前
- mounted 挂在之后
- beforeUpdate 更新之前
- update 更新之后
- beforeDestroy销毁之前
- destory 销毁|销毁完成
beforeCreate:function(){
console.log("创建之前")
},
created: function () {
console.log("创建")
},
beforeMount: function () {
console.log("挂载之前")
},
mounted: function () {
console.log("挂载之后")
},
beforeUpdate: function () {
console.log("更新之前")
},
updated: function () {
console.log("更新之后")
},
beforeDestroy: function () {
console.log("销毁之前")
},
destroyed: function () {
console.log("销毁|销毁完成")
},
mixins
mixins:[{
beforeCre