mashuxia

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
实现树形结构:

<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>
posted on 2020-10-14 18:38  mamiaomiao  阅读(43)  评论(0编辑  收藏  举报