1.监听props的方法
componentWillReceiveProps(nextProps) {
//
}
2.监听state的方法
3.props 传递的方法
<AlarmList {...this.props} />
.
1.监听props的方法
componentWillReceiveProps(nextProps) {
//
}
2.监听state的方法
3.props 传递的方法
<AlarmList {...this.props} />
.
转载于:https://www.cnblogs.com/crazycode2/p/9312179.html