zTree编写后没有任何内容显示
<script type="text/javascript" src="js/jquery.js" >
var setting = {
data:{
simpleData:{
enable:true
}
}
};
var zNodes =[
{id:1, pId:0, name:"行政管理部", open:true},
{id:101, pId:1, name:"前台接待", file:"core/standardData"},
{id:102, pId:1, name:"前台咨询", file:"core/simpleData"},
{id:103, pId:1, name:"人力资源", file:"core/noline"},
{id:104, pId:1, name:"后勤支援", file:"core/noicon"},
{id:2, pId:0, name:"总务部", open:false},
{id:201, pId:2, name:"卫生保洁", file:"excheck/checkbox"},
{id:206, pId:2, name:"电话总机服务", file:"excheck/checkbox_nocheck"},
{id:207, pId:2, name:"安全门卫", file:"excheck/checkbox_chkDisabled"},
{id:3, pId:0, name:"采购部", open:false},
{id:301, pId:3, name:"原材料采购", file:"exedit/drag"},
{id:302, pId:3, name:"公司日用采购", file:"exedit/drag_super"},
{id:303, pId:3, name:"外购产品采购", file:"exedit/drag_fun"},
{id:4, pId:0, name:"客服部", open:false},
{id:401, pId:4, name:"VIP客服", file:"bigdata/common"},
{id:402, pId:4, name:"售前客服", file:"bigdata/diy_async"},
{id:403, pId:4, name:"售后客服", file:"bigdata/page"},
{id:5, pId:0, name:"生产部", open:false},
{id:501, pId:5, name:"生产调度组", file:"super/oneroot"},
{id:502, pId:5, name:"设备工程组", file:"super/oneclick"},
{id:503, pId:5, name:"研发组", file:"super/singlepath"},
{id:504, pId:5, name:"维修组", file:"super/diydom"},
{id:505, pId:5, name:"组装组", file:"super/checkbox_radio"},
{id:506, pId:5, name:"测试组", file:"super/left_menu"},
{id:513, pId:5, name:"包装组", file:"super/left_menuForOutLook"},
{id:515, pId:5, name:"QC组", file:"super/awesome"},
{id:6, pId:0, name:"储运部", open:false},
{id:601, pId:6, name:"原材料仓", file:"exhide/common"},
{id:602, pId:6, name:"半成品仓", file:"exhide/checkbox"},
{id:603, pId:6, name:"成品仓", file:"exhide/radio"},
{id:603, pId:6, name:"返修仓", file:"exhide/radio"}
];
$(function(){
$.fn.zTree.init($("#tree"),setting,zNodes);
});
</script>
<div class="modal-header">
<button class="close" data-dismiss="modal">×</button>
<h4 class="modal-title" id="modal-title">
选择部门
</h4>
</div>
<div class="modal-body">
<ul id="tree" class="ztree"></ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">
关闭(ESC)
</button>
<button class="btn btn-primary">
<span class="glyphicon glyphicon-ok"></span>
确定
</button>
</div>