对于 jonmiles treeview 插件,如何在 json 数据中定义默认检查某些节点?
以下内容被完全忽略:
[{
"text": "Parent 1",
"checked": true,
"nodes": [{
"text": "Child 1",
"nodes": [{
"text": "Grandchild 1"
},
{
"text": "Grandchild 2"
}
]
},
{
"text": "Child 2"
}
]
},
{
"text": "Parent 2"
},
{
"text": "Parent 3"
},
{
"text": "Parent 4"
},
{
"text": "Parent 5"
}
]