vue.js 生命周期-事件

beforeCreate(){
                    console.log('创建之前,beforeCreate....');
            },
            created(){
                console.log('创建完成了,created...');
            },
            beforeMount(){
                console.log('挂载之前,beforeMount....');
            },
            mounted(){
                console.log('挂载完成了,mounted....');
            },
            beforeUpdate(){
                console.log('更新之前,beforeUpdate....');
            },
            updated(){
                console.log('更新后,updated....')
            },
            beforeDestroy(){
                console.log('销毁前,beforeDestroy...')
            },
            destroyed(){
                console.log('销毁后,destroyed....');
            }

 

你可能感兴趣的:(VUE)