组件的创建和挂载:调用顺序是先父后子,挂载完成是先子后父 :3->4->1
父组件:beforeCreate
父组件:created
父组件:beforeMount
子组件:beforeCreate
子组件:created
子组件:beforeMount
子组件:mounted
父组件:mounted
更新阶段:调用顺序是先父后子,更新完成是先子后父1->2->1
父组件:beforeUpdate
子组件:beforeUpdate
子组件:Updated
父组件:Updated
销毁阶段:调用顺序是先父后子,销毁完成是先子后父1->2->1
父组件:beforeDestroy
子组件:beforeDestroy
子组件:destroyed
父组件:destroyed