定时器问题
componentDidMount(){
this.timeID = setTimeout(function(
console.log(222)
){},200)
}
componentWillUnmount(){
clearTimeout(this.timeID);
}Last updated
componentDidMount(){
this.timeID = setTimeout(function(
console.log(222)
){},200)
}
componentWillUnmount(){
clearTimeout(this.timeID);
}Last updated