Daily in the development of a Web project, often can encounter of tree architecture data, according to retrieve data from the database, and display into a tree, for convenience, we can write a javascript a cross-browser tree control, follow-up can be repeated use, this section share a self development of JS tree plugin, to a friend in need can be downloaded directly use,
Tree plugin needs to implement
(1), automatic data is organized into a hierarchy, so that we can manually add the data at the front or to get the data from the database does not require us to organizational hierarchy
(2), the support load directory tree support XML, JSON format of the data load
(3), the realization of the choice of the tree nodes (radio, check [cascade choose]) function
(4) to support large data of one-time loading
,,,,,,,,
A Tree began to share their writing under the plug-in: this plug-in based on Jquery need reference
The results showed:
Code not stick up one by one,,,,
Links to download http://www.sdpsoft.com/demofiles/Tree_Demo.rar