时间:2022-9-2 作者:悬浮的青春 分类: javascript
我们可以从一个组件的外部通过给它一个 ref 用来调用一个方法。
// Somewhere in Parent.vue this.$refs.child.method();
推荐阅读