摘要: componentDidMount() 方法会在组件已经render()之后执行,这里可以对dom进行操作,编写加载服务器的数据。 componentWillReceiveProps(nextProps) 初始化render时不会执行,只有当父组件传给当前组件的值发生变化才会执行,可以根据属性变化, 阅读全文
posted @ 2019-07-18 17:58 yaolan 阅读(302) 评论(0) 推荐(0) 编辑