📅  最后修改于: 2022-03-11 15:01:09.431000             🧑  作者: Mango
onDeleteObject = (country) => {
const newCountries = this.state.countries.filter(element => element.id !== country.id);
this.setState({ countries: newCountries });
}