state中的key为变量

116 阅读1分钟
this.state[`collecState${record.id}`]
this.setState({ [`collecState${comp_id}`]: collecState })