I also searched some materials on the Internet and found some tree table components, but they were not ideal. As a result, I wrote a component that fits my usage in my boredom. The usage is as follows: $ (Function (){
$. Lyg_treetable.inittree ("# treetable ");
VaR map = [-, 5];
$. Lyg_treetable.inittrs ("# treetable1", MAP );
$. Lyg_treetable.inittree ("# treetable1 ");
}); Here are two tables, $. lyg_treetable.inittree ("# treetable ");
Is the first table, where the ID and PID have been written, more suitable for Java development methods, VAR map = [-,]; $. lyg_treetable.inittrs ("# treetable1", MAP); $. lyg_treetable.inittree ("# treetable1 "); This method is more suitable for static pages, where map represents the ID of its parent item. If it is-1, it indicates that there is no parent item such as: ID :,
If no ID is set manually, the ID is set cyclically. The default value starts from 0,
PID:-, 0, has been tested. It runs well in several mainstream browsers: treetable(myapps.zip