You can check the type and name of the target and handle the value accordingly. For Example this.setState({ [e.target.name]: e.target.type === 'number' ?
確定! 回上一頁