1. 重置,折叠tree
方法一:
$('#areaTree').tree("collapseAll");
方法二:
$('.tree-folder-open').removeClass('tree-folder-open');
$('.tree-expanded').addClass('tree-collapsed').removeClass('tree-expanded');
$('div ul').css("display","none");
2. 展开tree:
$('#areaTree').tree('expandAll');
3. 重置,取消tree根节点的选中click (不是checkbox的选中)
$('.tree-node-selected').removeClass('tree-node-selected');--折叠后,子节点自然不再选中,但根节点的选中仍然在。