话不多多说直接上代码
<div class="easyui-layout" data-options="fit:true">
<div data-options="region:'west',split:true,collapsible:false" style="width:200px;">
<ul id="itemTree">
</ul>
</div>
</div>
<script>
$(function () {
$("#itemTree").tree({
loadFilter: function (data, parent) {
var loadData = data;
loadData.unshift({ "id": "Wood", "text": "原料" });
return loadData;
}
}, 2);
});
}
</script>