摘要: react为每个组件ti提供了生命周期的钩子函数去响应不同的时刻-创建期存在期和销毁期。实例化期:当首次使用一个组件类时候:getDefaultProps 不是第一次调用时候,不会调用此方法getInitialStatecomponentWillMountrendercomponentDidAmo... 阅读全文
posted @ 2015-06-21 11:58 xiezhenzhong 阅读(221) 评论(0) 推荐(0) 编辑