пытается добавить два флажка в покидающем узле, используя это для отображения дерева
пытается вот так:
$('#form').tree({
data: json,
formatter:function(node,row){
var s = node.text;
if (typeof (node.iconCls) !== "undefined") {
console.log('csv');
}
if (node.children){
s += ' <span style=\'color:blue\'>(' + node.children.length + ')</span>';
}
return s;
}
});
: https://www.jeasyui.com/documentation/tree.php