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