自定义事件$emit。使用$emit建立父子组件之间的通信。子组件到父组件之间的通信。
子组件:
父组件:
$emit的用法
原文:https://www.cnblogs.com/naitang/p/14086144.html