JavaScript中textContent属性

时间:2025-04-01 08:22:10
JS下拉框去掉重复值

YY_Ylx_XX: 我的为何没用a[code=html] <el-select clearable v-model="" placeholder="选择展示字段" style="width:220px"> <el-option v-for="item in stair" :label="item":value="item" ></el-option> </el-select> [/code][code=html] = ; = []; for (var i = 0; i < ; i++) { if([i].categoryName != [j]){ ([i].categoryName); } //([i].categoryName); } $("#HandleID").empty(); [/code]