Home >Web Front-end >JS Tutorial >jquery.simple.tree plug-in A simpler and more compatible infinite tree plug-in_jquery
The effect is as follows:
Select:
Drag:
jquery.simple.tree. Official website address: http://news.kg/wp -content/uploads/tree/ (seems like it can no longer be opened), but because the operation is relatively simple, we will use it for now.
As mentioned before, the jquery EasyUI Tree plug-in is simple and easy to use, but it still has many shortcomings after testing.
For example:
1. There is a problem with AJAX compatible with IE8.
2. If the asynchronous return data is slow, it may cause loading failure.
3. We only use the Tree function, but its size is really huge. ...
What we need is good compatibility, asynchronous, and small size (there are really few scenarios where Tree is used, so dedicated code files are better.)
Okay, let's start jquery.simple .tree journey:
First, load the files, three in total: CSS, Jquery main file, and its own js file;
Then, the code that defines Tree;
Finally, write The root node HTML code of this tree;
The front-end code is as follows: