0
这是我的模板vuejs子组件生命周期差异根组件?
<parent>
<child></child>
</parent>
,这是孩子的部件脚本
beforeCreate(){
console.log('beforeCreate');
}
created(){
console.log('created');
}
beforeMount(){
console.log('beforeMount');
}
我测试vuejs组件的生命周期。
,所以我写在儿童中的子组件的所有钩子方法,
,但创造钩方法并不称为
是正常或不?
谢谢
我使用VUE类(https://github.com/vuejs/vue-class-component) 。如果你的代码运行良好,那么它是vue类问题..谢谢 – user1110977