当前位置: 代码迷 >> JavaScript >> jquery.easyui.min.js 展现树的bug,来看看
  详细解决方案

jquery.easyui.min.js 展现树的bug,来看看

热度:397   发布时间:2012-09-01 09:33:02.0
jquery.easyui.min.js 展现树的bug,高手进来看看。
用下面那个json,展现树,节点展开时,会死循环,子节点展开后,又是这棵树,然后可以无穷展开,到最后浏览器崩溃。
后来实验发现,只有把节点的 "iconCls":"icon-phonebook", 去掉。才能正常显示。"state":"closed"属性指定,也是这个问题。有碰到这个问题的朋友么?
JScript code

[{
        "id":"01",
        "text":"System Manager",
        "state":"closed",
        "children":[{
                    "id":"02",
                    "text":"User Auth Manager",
                    "iconCls":"icon-phonebook",
                    "state":"opened",
                    "children":[{
                                "id":"003",
                                "text":"Menu Manager",
                                "state":"closed"},
                                {
                                "id":"004",
                                "text":"Role Manager",
                                "state":"closed"},
                                {
                                "id":"005",
                                "text":"User Manager",
                                "state":"closed"},
                                {
                                "id":"006",
                                "text":"User Au manager",
                                "state":"closed"}]},
                    {
                    "id":"07",
                    "text":"Dept All Manager",
                    "iconCls":"icon-phonebook",
                    "state":"opened",
                    "children":[{
                                "id":"008",
                                "text":"Dept Manager",
                                "state":"closed"},
                                {
                                "id":"009",
                                "text":"Job Manager",
                                "state":"closed"},
                                {
                                "id":"010",
                                "text":"Title Manager",
                                "state":"closed"}]}]
}]



------解决方案--------------------
所有浏览器都是??
  相关解决方案