且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在jstree中获取所有检查的节点?

更新时间:2023-11-24 20:57:22

get_all_checked: function(obj)
           {
                obj = !obj || obj === -1 ? this.get_container() : this._get_node(obj);
                return obj.find(".jstree-checked, .jstree-undetermined");
            };

使用:

var checkedNodes = $(this).jstree("get_all_checked");