父组件在mounted的时候获取数组传参给子组件,发现数据没有传过去,
结论: 父组件的mounted在子组件的mounted之后
console.log
测试
顺序: 父组件beforeCreate => 父组件created => 父组件beforeMount => 子组件beforeCreate => 子组件created => 子组件 beforeMount => 子组件mounted => 父组件mounted => 父组件beforeDestroy => 子组件 beforeDestroy