也是通过props传值调用function ChildrenComponent ( props ) { props.fatherFunction() } <div> <ChildrenComponent fatherFunction={functionName} /> </div>
也是通过props传值调用