const { attributeValue = [] } = this.state;
this.setState({
attributeValue: [...attributeValue, { id, name }],
});
const { attributeValue = [] } = this.state;
this.setState({
attributeValue: [...attributeValue, { id, name }],
});
本文标题:react this.setState 存储对象
本文链接:https://www.haomeiwen.com/subject/qdlczctx.html
网友评论