双向折叠树-https://help.fanruan.com/finereport/doc-view-3821.html
条件属性实现折叠树-https://help.fanruan.com/finereport/doc-view-3276.html
https://help.fanruan.com/finereport/doc-view-3966.html
或者参考以下代码:
$('td[col="1"]').show();//显示第2列
$('td[col="1"]').hide();//隐藏第2列
设置一个参数a
设置条件属性,当a=1时,列宽为0
点击按钮去改变参数a的值,来实现显示和隐藏
设置一个全局参数a,默认值1,添加一个超链接参数定义if(a=1,0,1),如图A1,需要隐藏的加上条件属性选择行高为0,公式 a =0就可以了