easy ui tree 取父节点的值和取蓝色框的值
var nodes = $('#basetree').tree('getChecked');
var cnode = '';
var fnode = '';
for ( var i = 0; i < nodes.length; i++) {
cnode = nodes[i].text+nodes[i].id;
fnode = $('#basetree').tree('getParent', nodes[i].target);
alert(fnode.id);
}
var a = $("#basetree").find('.tree-checkbox2').each(function() {
var node = $(this).parent();
nodes.push($.extend({}, $.data(node[0], 'tree-node'), {
target : node[0],
checked : node.find('.tree-checkbox').hasClass('tree-checkbox2')
}));
});
alert(a);