vue:生命周期

	beforeCreate(){
                console.log('组件实例刚刚被创建');
            },
            created(){
                console.log('实例已经创建完成');
            },
            beforeMount(){
                console.log('模板编译之前');
            },
            mounted(){
                console.log('模板编译完成');
            },
            beforeUpdate(){
                console.log('组件更新之前');
            },
            updated(){
                console.log('组件更新完毕');
            },
            beforeDestroy(){
                console.log('组件销毁之前');
            },
            destroyed(){
                console.log('组件销毁之后');
	  }

猜你喜欢

转载自blog.csdn.net/weixin_41143662/article/details/84303156