//子组件 this.props.handle(num); //父组件 handle=(num)=>{ this.setState({ num:num }) } <子组件 handle={this.handle} >