Vue实例有一个完整的生命周期,也就是从开始创建初始化数据、编译模板、挂载DOM、渲染、更新、渲染、卸载等一系列过程,我们称这是Vue的生命周期。 beforeCreatecreatedbeforeMountemountedbeforeUpdateupdatedbeforeUnmountunmounted