使用props自定义onRef属性 使用props自定义onRef属性父组件里:this.Requirements.handleSubmit(); 调用子组件的handleSubmit方法子组件里:把子组件实例传递给父组件