easyui tree点击展开优化,不点击+号或箭头也能展开
在页面添加以下js代码
$(function () { $('.easyui-tree').tree({ onSelect: function (node) { if (node.state == "closed") $(this).tree('expand', node.target); else $(this).tree('collapse', node.target); } }); });
Hello world!
在页面添加以下js代码
$(function () { $('.easyui-tree').tree({ onSelect: function (node) { if (node.state == "closed") $(this).tree('expand', node.target); else $(this).tree('collapse', node.target); } }); });