easyui-combotree的使用!多選的訣竅,該死的說明手冊values
阿新 • • 發佈:2019-01-24
根據說明文件使用values 結果一直失敗,最後直接用value 實現預設多選 ! 不知道說啥!
$(function(){
$('#commcode').combotree({url: '${web}/sysuserinfo_getAreaCode.do',
required: true,
value: ${areabaglimit},
onSelect : function(node) {
if(0 == node.id){
//清除選中
$('#areacode').combotree('clear');
}
}
});
});
<select class="easyui-combotree" id='commcode' multiple name="areabaglimit.commcode" cascadeCheck="true" style="width:180px;"></select>
js建立組合數
<select class="easyui-combotree" id='commcode' multiple name="areabaglimit.commcode" data-options="url:'${web}/sysuserinfo_getAreaCode.do',required:true,value:'${areabaglimit}'" cascadeCheck="true" style="width:180px;"></select>html標記建立組合樹
切記多選一定不要用values 直接value就可以了!