摘要: 1.constructor():构造函数执行时间:组件被加载前最先调用,并且仅调用一次作用:定义状态机变量注意:第一个语句必须是super(props),正确定义状态机代码如下constructor(props) { super(props); this.state = { content:null 阅读全文
posted @ 2019-08-14 11:31 小玲慕斯 阅读(323) 评论(0) 推荐(0) 编辑