Easyui combobox多选框回填值没有选中值并且出现重复dom节点的问题

提问 未结 1 4008
|–/ 4年前
悬赏:20飞吻

$("#flowType").combobox({
valueField: 'id',
textField: 'text',
data: [{
id: "定向流量",
text: "定向流量"
}, {
id: "通用流量",
text: "通用流量"
}, {
id: "VPDN(关闭公网)",
text: "VPDN(关闭公网)"
}, {
id: "VPDN(打开公网)",
text: "VPDN(打开公网)"
},{
id: "NB",
text: "NB"
}],
required: true,
editable: false,
multiple: true,
}


$("#flowType").combobox('setValue', data.flowType.split(","));


生成的dom变成了四个一样的选项


而且多选框也没有选中回填的值
回帖
回帖须知