其他分享
首页 > 其他分享> > React之componentWillUnmount

React之componentWillUnmount

作者:互联网

React 之componentWillUnmount

unmount v. 卸载,取消安装;
will 不用解释了吧

componentWillUnmount(){
  clearTimeout(this.timer)
}
componentWillUnmount(){
  window.onScroll = null
}
componentWillUnmount(){
  this.setState = (state,callback) => {
    return
  }
}

标签:unmount,componentWillUnmount,清除,React,null,setState
来源: https://blog.csdn.net/into_Q/article/details/114460385