刚刚工作,Spring了解一点,JqueryUI一窍不通,跪求各位大神帮帮忙,做不出来我也该失业了。各位大神有编好的发邮箱[email protected],谢谢各位大神了!!!!!!!

解决方案 »

  1.   

    mvc 返回json 
    json格式:
    [{  
        "id":1,  
        "text":"Folder1",  
        "iconCls":"icon-save",  
        "children":[{  
            "text":"File1",  
            "checked":true  
        },{  
            "text":"Books",  
            "state":"open",  
            "attributes":{  
                "url":"/demo/book/abc",  
                "price":100  
            },  
            "children":[{  
                "text":"PhotoShop",  
                "checked":true  
            },{  
                "id": 8,  
                "text":"Sub Bookds",  
                "state":"closed"  
            }]  
        }]  
    },{  
        "text":"Languages",  
        "state":"closed",  
        "children":[{  
            "text":"Java"  
        },{  
            "text":"C#"  
        }]  
    }]