//子组件(传参数) < input type = "button" value = "提交" onClick = { ()=>{ this.props.handleChange('123') } } / >
//子组件(传输入值) < input onChange = { this.props.handleChange } / >
//父组件 handleChange(e){
//第一种接收参数 console.log(e)//123
let val = e
//第二种接收输入值
console.log(e.target.value)
let val = e.target.value
this.setState({ name:val }) } render(){ return ( <ComponentHeader handleChange={this.handleChange.bind(this)}/>
) }