摘要: 利用 componentWillReceiveProps 再子组件加入componentWillReceiveProps 当props跟新时就会触发此函数 那就可以再这里判断 当需要变更的数据变化时复制进去就可以了 componentWillReceiveProps(nextProps) {// 第 阅读全文
posted @ 2023-04-11 15:07 马铃薯头抽雪茄 阅读(579) 评论(0) 推荐(0)