>[success] # component -- 组件的生命周期 ~~~ 1.组件内部内容修改的时候,只会触发组件自己的beforeUpadae 和updated 2.子组件的生命周期,其中vm代表父组件,child代表子组件 vm.created -》vm.beforedMount-》child.created-》child.beforeMount -》child.mounted-》vm.mounted 3.不管是父组件修改还是子组件修改,他们只会执行各自update生命周期,因 为组件之间的生命周期是相互独立的 4.只要是想在mounted中使用就需要加$nextTick,获取最新的dom ~~~