MyException - 我的异常网
当前位置:我的异常网» Java Web开发 » 问一个关于dtree的有关问题()

问一个关于dtree的有关问题()

www.MyException.Cn  网友分享于:2013-12-13  浏览:180次
问一个关于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",
                                      "javascript:void(0)",
                                      "",
                                      ""
                                      );
                    
                         tree.add("06",
                                      "0",
                                      "ccccc",
                                      "javascript:void(0)",
                                      "",
                                      ""
                                      );
                    
                         tree.add("07",
                                      "0",
                                      "dddd",
                                      "javascript:void(0)",
                                      "",
                                      ""
                                      );
                    
                         tree.add("10",
                                      "0",
                                      "合同管理",
                                      "javascript:void(0)",
                                      "",
                                      ""
                                      );
                    
                         tree.add("11",
                                      "0",
                                      "仓库管理",
                                      "javascript:void(0)",
                                      "",
                                      ""
                                      );
                    
                    
                    document.write(tree);
                </script>

文章评论

软件开发程序错误异常ExceptionCopyright © 2009-2015 MyException 版权所有