react组件间事件触发的两种方式 1、通过组件间传递函数触发(应用于父子组件间); 2、注册react提供的 Provider(供应商)和 Consumer (消费者)来传递相关函数(不限于父子组件); (细节待补充,手懒暂时不想写。。。)