📅  最后修改于: 2022-03-11 15:03:57.944000             🧑  作者: Mango
handleChange = (e, date) => {
const value = moment(date);
const chargeId = e.target.name;
console.log(chargeId);
this.setState({[chargeId]: value}, () => console.log(this.state[chargeId]));
}