1.beforecreate/created 创建vue实例并初始化
执行请求,获取vuex数据操作data数据
2.beforemount/mounted 将vue实例和视图层进行关联
操作dom
3.beforeupdate/updated 监听数据和视图的变化
数据变化时的钩子,也可以操作dom
4.beforedestroy/destroyed 组件实例销毁前和已销毁
手动销毁:this.$destroy()
off掉bus传值,清楚定时器