实现树形结构:
<SCRIPT LANGUAGE="JavaScript"> var zTree; var setting = {}; var zNodes = [ {name:"100", open:true, children:[ {name:"101"}, {name:"102"}]}, {name:"200", open:true, children:[ {name:"201"}, {name:"202"}]} ]; $(document).ready(function(){ zTree = $.fn.zTree.init($("#tree"), setting, zNodes); }); </SCRIPT>