1.combotree多选
<1>class:easyui-combotree , multiple多选
<input type="text" style="width:100px;" id="section" name="section" class="easyui-combotree" multiple data-options="" />
<2>方法
function GetSection() {
$.post('@Url.Action("GetSection")', function (data) {
$("#section").combotree('loadData', [{
id: '全部',
text: '全部',
checked: true,
children: data
}]);
$(".tree-icon").removeClass("tree-file");
$(".tree-indent").removeClass("tree-indent");
$(".tree-hit").removeClass("tree-expanded");
$(".tree-icon").removeClass("tree-folder-open");
$(".tree-icon").removeClass("tree-folder");
// getData();
}, "json");
}
2.combobox单选
<1>class:easyui-combobox,后台方法url:'@Url.Action("GetSection")',默认选中的值value:'110000HRSK01'
<input type="text" style="width:100px;" id="section" name="section" class="easyui-combobox" data-options="url:'@Url.Action("GetSection")',value:'110000HRSK01'" />