1. 被更新时触发
componentDidUpdate(prevProps, prevState){
const typrval = this.props.typrval;
if (typrval === prevProps.typrval) {
return
}
(需要执行的函数)
}
标签:ops state post update stat component == this blog
1. 被更新时触发
componentDidUpdate(prevProps, prevState){
const typrval = this.props.typrval;
if (typrval === prevProps.typrval) {
return
}
(需要执行的函数)
}
标签:ops state post update stat component == this blog
原文地址:https://www.cnblogs.com/wangrui38/p/8298162.html