Vue实例生命周期知识点整理积累

2017-11-22  本文已影响0人  Coldhands

beforeCreate

created

beforeMount

mounted

mounted: function () {
    this.$nextTick(function () {
        //code that will run only after the
        //entire view has been rendered
    })
}

该钩子在服务器端渲染期间不被调用

beforeUpdate

updated

updated: function () {
    this.$nextTick(function () {
        //code that will run only after the
        //entire view has been re-rendered
    })
}   

该钩子在服务器渲染期间不被调用。

updated

updated: function () {
    this.$nextTick(function () {
        //code that will run only after the
        //entire view has been re-rendered
    })
}   
**该钩子在服务器渲染期间不被调用。**

activated

deactivated

beforeDestory

destroyed

上一篇下一篇

猜你喜欢

热点阅读