需要留意的是,在 <button onClick={this.toggleMood}> 中,它會尚失其原本的 this 所指稱的對象,因此需要在constructor 中先使用 this.
確定! 回上一頁