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
本文出自 无忧之路 - 博客园