摘要: 首先当组件第一次渲染的时候会执行哪些生命周期函数? constructor >componentWillMount >render >componentDidMount constructor: 初始化 当前生命周期函数可以用来定义当前组件所需要的一些状态 当前生命周期里面必须要写super如果不写 阅读全文
posted @ 2018-12-15 15:04 裸睡的鱼 阅读(312) 评论(0) 推荐(1) 编辑