我想更改状态数组中的状态,我该怎么做
this.state = {
education_record: [
{
institute: '',
degree_title: '',
start_date: '',
end_date: '',
summery: '',
},
],
};
value={this.state.education_record}
onChangeText={value =>
this.setState({
education_record: {
...this.state.education_record,
start_date: value,
},
})
}
当我输入er时,新数组如下所示0:{机构:“”,学位标题:“”,开始日期:“”,结束日期:“”,夏季:“”}研究所:“ er”
尝试像这样使用扩展运算符: