setState是异步的(不保证是同步) 推荐使用setState时候用 this.setState(() => { return { key: value } }) 和渲染无关的状态尽量不要放在state中管理