传入新的props时重新异步取数据getDerivedSta…szf阅读(4434)评论(0)赞(0)传入新的props时重新异步取数据,getDerivedStateFromProps+ componentDidUpdate 替代 componentWillReceiveProps