树视图格式的javascript可折叠行 [英] javascript collapsable rows in treeview format

查看:100
本文介绍了树视图格式的javascript可折叠行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI


我需要一些JavaScript帮助来以树格式显示可折叠的行

像最初一样是这样

姓名

1级:+ 1

在第二级中,单击+,应插入新行,如下所示

2级:-a 1
+ b 2


第三级:在第二行中单击+,应再插入几行

喜欢-1
-b 2
+ c 3
+ d 4

同样的方法应该继续多行

再次,如果我们单击-它应该隐藏该特定行

您能在这方面帮助我吗?
我能够进行菲斯特唱片倒塌

感谢

HI


i need some help in javaScript for displaying collapsable rows in tree format

like initially it was like this

name no

1st level: + a 1

in 2nd level clicking on + it should insert new row which shows below

2nd level: - a 1
+ b 2


3rd level : clicking + in the2nd row should insert few more rows

like - a 1
- b 2
+ c 3
+ d 4

same way should be continued for few more rows

again if we click on the - it should hide that paricular row

could you please help me in this regard
i am able to do for fisrt record collapsing

thanks

推荐答案

CP包含许多文章,请从 ^ ].
CP contains many articles in that please pick it from here[^].


这篇关于树视图格式的javascript可折叠行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆