emit的声明触发事件

在组件的模板表达式中,可以直接使用$emit方法触发自定义事件

我们一般是在代码块里写他的事件

猜你喜欢

转载自blog.csdn.net/ming_xiang/article/details/142034339