Open powerdong opened 4 years ago
state={ datavalue:{ name:'', memo:'' }, }
设置 state 值
SetName=(e)=>{ let val=e.target.value; let data = Object.assign({}, this.state.datavalue, { name: val }) this.setState({ datavalue: data }) }
设置 state 值