Element获取选中的下拉框的文本label
如下:
dom结构:
<el-select ref="nationalityIdSel" placeholder="请选择" style="width:100%" clearable filterable > <el-option v-for="(nationality,id) in nationalities" :value="id" :label="nationality" :key="id" ></el-option> </el-select>
JavaScript:
this.$refs.nationalityIdSel.selectedLabel
I can see a bigger world.