1 Star 1 Fork 44

DreamSmile/JEUI

forked from jeArts/JEUI 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tree.html 4.38 KB
一键复制 编辑 原始数据 按行查看 历史
jeArts 提交于 2017-07-13 16:00 . jeui 1.0.2
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>je-tree</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="wcodeth=device-wcodeth, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="css/jeui.css" media="all">
<script type="text/javascript" src="js/modules/jeui.js"></script>
</head>
<body>
<div class="je-p20">
<blockquote class="je-quote je-f16">
tree树列表
</blockquote>
<div id="trees" class="je-tree"></div>
</div>
<script type="text/javascript">
jeui.use(["jquery","jeTree"],function () {
var jsonlist = [
{
tid: "M001",
name: "首页",
url: "",
childlist: [
{
tid: "M006",
name: "je原创插件库",
url: "http://www.jayui.com/",
childlist: ""
},
{
tid: "M007",
name: "别克",
url: "",
childlist: ""
}
]
},
{
tid: "M002",
name: "车辆买卖",
url: "",
open: true,
childlist: [
{
tid: "M003",
name: "新车",
url: "",
open: true,
childlist: [
{
tid: "M006",
name: "奥迪",
url: "",
childlist: [
{
tid: "M007",
name: "别克",
url: "",
childlist: [
{
tid: "M006",
name: "奥迪",
url: "",
childlist: ""
},
{
tid: "M007",
name: "别克",
url: "",
childlist: ""
}
]
}
]
},
{
tid: "M007",
name: "别克",
url: "",
childlist: ""
}
]
},
{
tid: "M004",
name: "二手车",
url: "",
childlist: ""
},
{
tid: "M005",
name: "改装车",
url: "",
childlist: [
{
tid: "M006",
name: "奥迪",
url: "",
childlist: ""
},
{
tid: "M007",
name: "别克",
url: "",
childlist: ""
}
]
}
]
},
{
tid: "M006",
name: "宠物",
url: "",
childlist: [
{
tid: "M006",
name: "奥迪",
url: "",
childlist: ""
},
{
tid: "M007",
name: "别克",
url: "",
childlist: ""
}
]
}
];
$("#trees").jeTree({
datas:jsonlist,
itemfun:function (item) {
console.log(item)
}
})
})
</script>
<!--http://www.qdfuns.com/notes/13967/3cdebc6a132f33a3e65aa2b6019a7487.html-->
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/kqdscorpio/jeui.git
git@gitee.com:kqdscorpio/jeui.git
kqdscorpio
jeui
JEUI
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385