码迷,mamicode.com
首页 > 其他好文 > 详细

zTree第五章,zTree的nodes数据例子

时间:2018-08-04 12:00:11      阅读:142      评论:0      收藏:0      [点我收藏+]

标签:信息   技术   nbsp   pen   rop   数据   英语   初中   信息技术   

var nodes1 = [
{
name: "小学",
iconOpen: folderOpen,
iconClose: folder,
chkDisabled :true,
children: [
{
name: "语文",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "人教版",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "一年级上册",
icon: file,
},
{
name: "一年级下册",
icon: file,
}
]
},
]
},
{
name: "数学",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "人教版",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "一年级上册",
icon: file,
},
{
name: "一年级下册",
icon: file,
}
]
},
]
},
{
name: "英语",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "人教版",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "一年级上册",
icon: file,
},
{
name: "一年级下册",
icon: file,
}
]
},
]
},
]
},
{
name: "初中",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "语文",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "人教版",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "九年级上册",
icon: file,
},
{
name: "九年级下册",
icon: file,
}
]
},
]
},
{
name: "数学",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "人教版",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "九年级上册",
icon: file,
},
{
name: "九年级下册",
icon: file,
}
]
},
]
},
{
name: "英语",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "人教版",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "九年级上册",
icon: file,
},
{
name: "九年级下册",
icon: file,
}
]
},
]
},
{
name: "科学",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "人教版",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "九年级上册",
icon: file,
},
{
name: "九年级下册",
icon: file,
}
]
},
]
}
]
},
{
name: "高中",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "语文",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "人教版",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "高年级上册",
icon: file,
},
{
name: "高年级下册",
icon: file,
}
]
},
]
},
{
name: "数学",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "人教版",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "高年级上册",
icon: file,
},
{
name: "高年级下册",
icon: file,
}
]
},
]
},
{
name: "英语",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "人教版",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "高年级上册",
icon: file,
},
{
name: "高年级下册",
icon: file,
}
]
},
]
},
{
name: "信息技术",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "人教版",
iconOpen: folderOpen,
iconClose: folder,
children: [
{
name: "高年级上册",
icon: file,
},
{
name: "高年级下册",
icon: file,
}
]
},
]
}
]
},
];

 

 

 

 


var nodes2 = [ {
name : "小学",
iconOpen : folderOpen,
iconClose : folder,
isParent :true,

/*open :true,*/
}, {
name : "初中",
iconOpen : folderOpen,
iconClose : folder,

}, {
name : "高中",
iconOpen : folderOpen,
iconClose : folder,

}, ];

zTree第五章,zTree的nodes数据例子

标签:信息   技术   nbsp   pen   rop   数据   英语   初中   信息技术   

原文地址:https://www.cnblogs.com/whoknows1/p/9417287.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!