首页 > 其他 > 详细

vue-learning:31 - component - 组件间通信的6种方法

时间:2019-06-16 14:29:25      阅读:100      评论:0      收藏:0      [点我收藏+]

vue组件间通信的6种方法

  • 父子组件通信 prop / $emit
  • 嵌套组件 $attrs / $liteners
  • 后代组件通信 provide / inject
  • 组件实例引用 $root / $parent / $children / $refs
  • 事件总线 const Bus = new Vue()
  • 状态管理器 Vuex

点击查看参考链接:https://mp.weixin.qq.com/s/xNlZ8gextPWABguwOtqE3Q
点击查看参考链接:https://blog.csdn.net/zhoulu001/article/details/79548350

vue-learning:31 - component - 组件间通信的6种方法

原文:https://www.cnblogs.com/webxu20180730/p/11031265.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!