简体   繁体   中英

How to reload or refresh component without reload the page in vue js

我有两个组件,组件A和组件B我在A组件中有一个按钮,当我点击按钮A我想重新加载或刷新组件B。如果这可以在vue js,我使用vue js 2.o

在单击时,您应该使用this.$refs.componentB方法调用一个在DOM中调用组件B的方法this.$refs.componentB

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM