jstree获取选中节点的id

原创
2018/01/24 15:18
阅读数 8.2K

要获取选中节点的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"]
        });

 

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部