呼叫setState() 時,React 會merge 你提供的object 到目前的state。 如果state 包含數個獨立變數:. constructor(props) { super(props); this.state = { posts: ...
確定! 回上一頁