摘要: 因为componentDidMount生命周期只执行一次,所以在数据有变化的时候并不会更新页面,这时候可以使用 componentWillReceiveProps(nextProps) {} 生命周期更新值更新页面。 阅读全文
posted @ 2021-08-16 17:36 小小鱼丸 阅读(702) 评论(0) 推荐(0) 编辑