jstree事件中拿来绑定的原始数据 电脑版发表于:2020/7/17 22:54 比如要拿到绑定的id 其实里边有个original属性就是绑定上来的原始对象,这样就可以随便的拿到了,这个树形组件封装得还是很不错! ``` "action": function (data) { var inst = jQuery.jstree.reference(data.reference); obj = inst.get_node(data.reference); //拿到原始的数据源中的Id console.log(obj.original.Id); alert(obj.original.Id); } ```