标签:style blog color io ar sp div on cti
//扩展方法 $.extend($.fn.tree.methods, { getLevel:function(jq,target){ var l = $(target).parentsUntil("ul.tree","ul"); return l.length+1; } }); //用法 var node = $().tree("getSelected"); var lv = $().tree("getLevel",node.target);
Easyui Tree方法扩展 - getLevel(获取节点级别)
标签:style blog color io ar sp div on cti
原文地址:http://www.cnblogs.com/hubing/p/4032828.html