2020年1月21日
摘要: 1.什么是Component,PureComponent? 都是class方式定义的基类,两者没有什么大的区别,只是PureComponent内部使用shouldComponentUpdate(nextProps,nextState)方法,通过浅比较(比较一层),来判断是否需要重新render()函 阅读全文
posted @ 2020-01-21 11:42 旋风小美女 阅读(564) 评论(0) 推荐(1)