摘要: Mounting阶段,当一个组件的实例被创建并插入到DOM中时,下面这些函数会被调用: constructor() componentWillMount:组件即将被渲染到页面上,render之前最后一次修改状态的机会 render:生成虚拟的DOM节点,只能访问this.props和this.sta 阅读全文
posted @ 2017-07-23 01:23 Sameen 阅读(244) 评论(0) 推荐(1) 编辑