摘要: 在vue中组件之间的通信,大致可以分为几种方式: (1)通过 props 和 $emit 实现父子组件的通信; (2)通过 $parent 和 $children 实现组件之间的通信; (3)通过 $attr 和 $listeners 实现组件之间的通信; (4)通过1.0版本中的 $dispatc 阅读全文
posted @ 2019-03-06 17:01 mumengchun 阅读(250) 评论(0) 推荐(0) 编辑