react中ref的使用

react獲取元素DOM的兩種方式 一、e.target 二、refreact <input id=「insertArea」 className=‘input’ value={this.state.inputValue} onChange={this.handleInputChange} ref={(input) => {this.input=input}} />web 、dom ref在reac
相關文章
相關標籤/搜索