默认加载一级几点

 /* *页面加载* */           

  $(document).ready(function(){       

          /* *数据加载* */              

   $.fn.zTree.init($("#tree"), setting, zTreeNodes);

                /* *默认展开一级节点* */     

            var treeObj = $.fn.zTree.getZTreeObj("tree");  

               var nodes =treeObj.getNodes();         

         treeObj.expandNode(nodes[0],true);  

           });

posted on 2013-08-10 12:07  田亦裔  阅读(653)  评论(0编辑  收藏  举报