摘要: 1.修改state中的值,必须采用setState修改。 this.setState()中可以传递两种格式的参数,第一种 componentDidMount() { this.setState({ count: this.state.count + 1 }, () => { console.log( 阅读全文
posted @ 2021-06-04 21:55 流弊的小涛 阅读(85) 评论(0) 推荐(0) 编辑