EasyUI combotree值的设置 setValue

如果combotree的json数据如下:

[
    {
        "id":"2",
        "text":"wwwww",
        "state":"open",
        "children":[
            {
                "id":"2,7,10",
                "text": "aaa"
            },
            {
                "text": "bbb",
                "id":"2,8,10"
            },
            {
                "text": "ccc",
                "id":"2,9,10"
            },
            {
                "text": "dddd",
                "id":"2,10"
            }
        ]
    }
]

$("#combotreeId").combotree('setValue', "2,10");

则combotree会选择最后一个结点,即dddd

posted @ 2014-03-11 23:39  无忧之路  阅读(3582)  评论(0编辑  收藏  举报
无忧之路