日期:2014-05-17  浏览次数:20361 次

把左边的导航中的节点转成树结构 求源码 有demo的直接给分
导航 树形 asp.net jquery-easyui-1.3.2

------解决方案--------------------
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SimpleTree</title>
<link rel="stylesheet" type="text/css" href="/Styles/SimpleTree.css"/>
<script type="text/javascript" src="/Scripts/jquery-1.6.js"></script>
<script type="text/javascript" src="/Scripts/SimpleTree.js"></script>
<script type="text/javascript">
    $(function () {
        $(".st_tree").SimpleTree({
            click: function (a) {
                if (!$(a).attr("hasChild"))
                    alert($(a).attr("href"));
            }
        });

        $(".menu1").each(function () {
            $(this).bind('click', function (event) {
                if ($(event.target).hasClass("title")) {
                    var $this = $(this);
                    var $span = $this.find(".title");
                    var $st_tree = $this.find(".st_tree");
                    if ($span.hasClass("selected")) {