Vue生命周期 :Vue实例对象从 出生 到 消亡的 一个过程 8 个钩子函数 beforeCreate : 创建 Vue实例对象前 created : 创建 Vue实例后 beforeMount : 在 挂载到 DOM 前 mounted : 挂载 DOM 之后 beforeUpdate : 数据更改前触发的动作 updated : 数据更改后触发的动作 beforeDestroy : 在Vue实例消亡前 destroyed : 在Vue实例消亡后