EasyUI tree 优化--点击文字折叠展开效果
$(function () { $('#tree_menu').tree({ onSelect: function (node) { if (node.state == "closed"){ $(this).tree('expand', node.target); } else{ $(this).tree('collapse', node.target); } } }); });
学会关注自己,善待自己。
$(function () { $('#tree_menu').tree({ onSelect: function (node) { if (node.state == "closed"){ $(this).tree('expand', node.target); } else{ $(this).tree('collapse', node.target); } } }); });