要获取选中节点的id集合
$('#jstree').on("changed.jstree", function (e, data) {
console.log(data); // newly selected
var ids = data.selected;
$("wh-range").val(JSON.stringify(ids));
console.log(ids);
}).jstree({
"core": {
"animation": 0,
"check_callback": true,
'force_text': true,
"themes": {"stripes": true}
},
"plugins": ["search", "state", "types", "wholerow", "checkbox"]
});