54

面试官:既然React/Vue可以用Event Bus进行组件通信,你可以实现下吗?

 6 years ago
source link: https://juejin.im/post/5ac2fb886fb9a028b86e328c
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
面试官系列(2):如何实现一个Event 往期 面试官系列(1): 如何实现深克隆 前言 本文标题的题目是由其他问题延伸而来,面试中面试官的常用套路,揪住一个问题一直深挖,在产生这个问题之前一定是这个问题. React/Vue不同组件之间是怎么通信的?

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK