📅  最后修改于: 2022-03-11 15:02:37.737000             🧑  作者: Mango
var array = [...this.state.people]; // make a separate copy of the array
var index = array.indexOf(e.target.value)
if (index !== -1) {
array.splice(index, 1);
this.setState({people: array});
}