setState是異步的(不保證是同步) 推薦使用setState時候用 this.setState(() => { return { key: value } }) 和渲染無關的狀态盡量不要放在state中管理