Example 2: List of files
<chtml> <file id=file act=dir type=file>base</file> <for [email protected]{file: getwidth}> <span>@{file:[email Protected]{for:getsuffix}} </span> </for></chtml >
Browse the base directory and return a schoolbag named file , from 0 loops to the width of the schoolbag, according to the keyword file@{for:getsuffix}(FILE0, File1, file2 ...) Take out all the file names
Effect
(example file: _samples/file_dir_file.html)
Example 3: Sub-directories
<chtml> <file id=file act=dir type=dir>base</file> <for [email protected]{dir:getwidth }> <span>@{dir:[email Protected]{for:getsuffix}} </span> </for></chtml>
Browse the base directory and return the schoolbag named dir , from 0 loops to the width of the schoolbag, according to the keyword dir@{for:getsuffix}(Dir0, Dir1 , Dir2 ...) Remove all directory names
Effect
(example file: _samples/file_dir_dir.html)
The functionality of this section of the platform is not fully implemented in the currently available download version, please note the update tips behind this blog
Download and description of light-open platform resources
platform free Download:http://download.csdn.net/detail/tx18/8381859
Latest Development Manual Download: http://download.csdn.net/detail/tx18/8411089
Development example: Light Open e-commerce website , free download: http://download.csdn.net/detail/tx18/8318585
The light-open platform will be upgraded to provide you with more powerful and easy features, please note the latest development manuals
Files and subdirectories in the File tab, respectively, in the directory (next)