如下:
dom结构:
<el-select ref="nationalityIdSel" placeholder="请选择" style="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