您的位置:首页 > Web前端 > JavaScript

jstree获取选中节点的id

2018-01-24 00:00 288 查看
要获取选中节点的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"]
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: