如何从<select>标记中的<option>获取所需的值

时间:2018-12-14 14:16:07

标签: javascript reactjs select option

渲染(){     返回(       
this.forwardValues(事件)}>         <选择           onChange = {(事件,索引)=> this.onChangeHandler(事件,索引)}           className ='选择'>           {_.map(this.state.globalDataArray,(item,index)=> {             返回 {item.name}           })}