
beforecreated() { // data and methode里的数据和函数还没有被初始化
},
created() { // data and methode里的数据和函数被初始化 // 即调用methode 和data 最早在 created
},
beforeMount() { // 表示模板已经在内存中编译完成,但是尚未把模板在页面上编译
},
mounted() { // 内存中的模板已经挂载到页面中,即用户可以看见渲染好的页面。实例创建的最后一个周期函数,当执行完以后,实例被完全建立好了。
}
网友评论