日期:2014-05-18  浏览次数:20649 次

问一个关于dtree的问题(在线等)
我用dtree写了一棵树,前段时间还能正常显示,但是从昨天开始页面上什么都没有啦, 哪位大人告知一下啊。。。

javascript代码如下: 

JScript code
<script type='text/javascript'>
                    tree = new dTree('tree');
                    tree.config.folderLinks=false;
                    tree.config.useCookies=false;
    
                    <logic:iterate id="view" name="menuList" scope="session">
                         tree.add("<bean:write name="view" property="id"/>",
                                      "<bean:write name="view" property="pid"/>",
                                      "<bean:write name="view" property="name"/>",
                                      "<bean:write name="view" property="url"/>",
                                      "",
                                      "<bean:write name="view" property="target"/>"
                                      );
                    </logic:iterate>
                    
                    document.write(tree);
                </script>


查看了网页的源文件, 页面也有数据,但是就是在页面中显示不出来


HTML code
<script type='text/javascript'>
                    tree = new dTree('tree');
                    tree.config.folderLinks=false;
                    tree.config.useCookies=false;
    
                    
                         tree.add("01",
                                      "0",
                                      "系统管理",
                                      "javascript:void(0)",
                                      "",
                                      ""
                                      );
                    
                         tree.add("0101",
                                      "01",
                                      "菜单管理",
                                      "../system/menu.do?method=list",
                                      "",
                                      "main1Frame"
                                      );
                    
                         tree.add("0102",
                                      "01",
                                      "用户管理",
                                      "b",
                                      "",
                                      ""
                                      );
                    
                         tree.add("02",
                                      "0",
                                      "字典管理",
                                      "javascript:void(0)",
                                      "",
                                      ""
                                      );
                    
                         tree.add("03",
                                      "0",
                                      "aaaa",
                                      "javascript:void(0)",
                                      "",
                                      ""
                                      );
                    
                         tree.add("04",
                                      "0",
                                      "bbbb",
                                      "jav