react 页面存在多 input 时

this.setState({
    [e.target.name]:e.target.value
})
let o = {}
o[e.target.name] = e.target.value
this.setState(o)