componentWillReceiveProps(nextProps){
if(this.props.data.photo != nextProps.data.photo){
this.setState({
logoUrl: nextProps.data.photo
})
}
}
componentWillReceiveProps使用
最新推荐文章于 2022-08-29 09:39:23 发布