React组件卸载后的问题

状态改变容易问题 第一种解决方式: componentWillUnmount(){ //组件将要卸载 this.setState = () =>{   return } } 第二种解决方式: 加开关_onOff
相关文章
相关标签/搜索