HTMLSelectElement元素有selectedIndex属性。使用它和孩子列表,您可以获得孩子的属性:<select id="category" onChange={this.selectChanged}> <option id="1">Travel</option> <option id="2">Auto Loan</option></select>selectChanged(event){ const select = event.target; const id = select.children[select.selectedIndex].id; //now you can store the id's value to state or somewhere else}如果您需要进入id表单提交处理程序,您必须通过 id 查找select,然后执行相同的操作:onSubmit(event) { const form = event.target; const select = form.elements.namedItem('category'); const id = select.children[select.selectedIndex].id;}