el-select取值
时间: 2023-09-23 18:06:36 浏览: 116
获取select的值
在使用el-select组件时,如果想要获取选中项的值,可以通过@click.native事件绑定一个方法来实现。通过这个方法,可以获取到选中项的数据对象,然后可以使用对象的属性来获取想要的值。例如,可以在@click.native事件中传入一个item参数,然后通过item.XXX的方式获取想要的值。这样就可以实现el-select取值的功能。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [el-select获取选中项的某项值](https://blog.csdn.net/Jlvu1/article/details/118311726)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [浅谈Vue Element中Select下拉框选取值的问题](https://download.csdn.net/download/weixin_38628830/12762951)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [【表格嵌套选择器】elementul中el-table表格嵌套el-select方法,循环多个el-select获取对应值](https://blog.csdn.net/seeeeeeeeeee/article/details/121973090)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文