setState({ count: this.state.count + 1 })}> Click me </button> </div> ); } }. 注意,在这个class 中,我们需要在两个生命周期函数中编写重复的代码。
確定! 回上一頁