摘要: 当组件第一次渲染的时候执行哪些生命周期? constructor >componentWillMount >render >componentDidMount 1.constructor 初始化 当前生命值周期可以定义当前组件所需要的状态 当前生命周期函数必须写super,否则就会报错或者this的 阅读全文
posted @ 2018-12-13 12:46 小冉0209 阅读(524) 评论(0) 推荐(0) 编辑