摘要: 1、构造函数 //js的构造函数,用于其他任何函数执行 constructor(props){ super(props) //调用父类的构造函数,固定写法 this.state={ inputValue:'' , // input中的值 list:[] //服务列表 } } 阅读全文
posted @ 2021-09-16 14:44 尘心i 阅读(10) 评论(0) 推荐(0) 编辑