子组件调用父组件刷新
时间: 2023-09-13 11:07:03 浏览: 120
在你的描述中,父组件定义了一个名为`getList()`的方法,并且你在子组件中试图通过`this.$parent.getList()`来调用该方法,但发现无法成功调用。然后你尝试了`this.$parent.$parent.getList()`,这样就成功调用到了该方法。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Vue子组件关闭后调用刷新父组件方法](https://blog.csdn.net/Five297/article/details/128033726)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [React-class子组件调用父组件方法无法立刻更新](https://blog.csdn.net/weixin_44593720/article/details/127317421)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文