React組件卸載後的問題

狀態改變容易問題 第一種解決方式: componentWillUnmount(){ //組件將要卸載 this.setState = () =>{   return } } 第二種解決方式: 加開關_onOff
相關文章
相關標籤/搜索