摘要: getDefaultProps(在任何实例创建之前执行,不在装载阶段执行 该方法在 组件创建时( createClass )执行一次并缓存返回值。 如果组件使用时未设置属性,就从缓存中读取默认属性。 getDefaultProps() 返回的缓存数据会在所有实例间共享。 getInitialStat 阅读全文
posted @ 2017-03-09 16:19 Meow-z 阅读(184) 评论(0) 推荐(1) 编辑