nyr_jack
Newbie
Posts: 31
|
|
« on: October 12, 2012, 01:15:19 AM » |
|
js code: for(var i = 0; i < nodes.length; i++){ alert($('#orgTree').tree('isLeaf',nodes)); //...... } json code: [{ "id":1, "text":"root", "children":[{ "id":2, "text":"node2", "checked":false },{ "id":3, "text":"branch", "state":"open", "children":[{ "id":4, "text":"branch1", "checked":false }, { "id":5, "text":"branch2", "checked":false }, { "id":6, "text":"3", "checked":false }] }] }]
I want to judeg the node of tree is leaf or not, but the return values are all true,not false, I don't know why. please help!
|