摘要: 定义class组件,为什么需要加上 super() ? 我们尝试去掉 super() 看看编译的结果: constructor() { this.state = {searchStr: ''}; this.handleChange = this.handleChange.bind(this); } 阅读全文
posted @ 2020-02-02 11:09 Tim带你转AI测试 阅读(2327) 评论(0) 推荐(1)