new Vue()开始执行初始化创建 -> app.mount(el)开始执行初始化创建
beforeDestory -> beforeUnmount destroyed -> unmouted
beforeCreate->setup() created->setup() beforeMount->onBeforeMount() mounted->onMounted() beforeUpdate->onBeforeUpdate() updated->onUpdated() beforeUnmount->onBeforeUnmount() unmounted->onUnmounted() 同时使用钩子函数和组合API时,先执行组合API,在执行钩子