1.vue的生命周期
![image.png](https://i-blog.csdnimg.cn/blog_migrate/422b991a8e9f63c05f2fde6849c0e4d0.png)
2.views/createrCustormer.vue为父级
<template>
<expressService />
</template>
<script>
import expressService from '@/components/expressService'
export default {
components: {
expressService
},
beforeCreate() {
const time = (new Date()).getTime()
console.group('beforeCreate父级 实例初始化进行数据观测/事件配置', time)
},
created() {
const time = (new Date()).getTime()
console.log('created父级 实例创建完成', time)
},
beforeMount() {
const time = (new Date()).getTime()
console.group('beforeMount父级 挂载开始', time)
},
mounted() {
const time = (new Date()).getTime()
console.log('mounted父级 挂载到实例上', time)
},
beforeUpdate() {
const time = (new Date()).getTime()