在子组件tab.vue中,调用父组件方法
父组件含有该方法:
但偏偏报错:
[Vue warn]: Error in v-on handler: "TypeError: this. p a r e n t . f a t h e r M e t h o d i s n o t a f u n c t i o n " ; [ s y s t e m ] T y p e E r r o r : t h i s . parent.fatherMethod is not a function"; [system] TypeError: this. parent.fatherMethodisnotafunction";[system]TypeError:this.parent.fatherMethod
.$parent子组件无法调用父组件方法
最新推荐文章于 2024-05-28 18:37:06 发布