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