Example 1:
A line of code compares the age size of User A and User B, and list all dates for user A to User B birthdays
<edate id=test list><we start= "@{ppage:userabirthday}" end= "@{ppage:userbbirthday}" format= "YYYY-MM-DD"/ ></edate>
Note the addition of aListParameters
Output calculated list of dates
<b> all dates from User A to User B birthdays </b><table border=1><for bags=test end= "@{test:getlength}" ><if x= "@{ Test:getsuffix} "> <tr x=0> <for end=" @{test:getwidth} "> <th>@{test:@{for: getsuffix}}</th> </for> </tr></if> <tr> <for end= "@{test: GetWidth} "> <td>@{test: @{test:@{for:getsuffix}}}</td> </for> </tr></ For></table>
Effect
Full code
The desired result item can be removed by @{test:key}
(example file: _samples/date-2list.html) in the _samples directory of the light-open platform
Easy bar!Easy to download resources for Internet development Platform
Platform and Latest development Manuals free Download: http://download.csdn.net/detail/tx18/8464425
Development example: Light Open e-commerce website , free download: http://download.csdn.net/detail/tx18/8318585
Light open platform will be upgraded to provide you with more powerful and easy features, please pay attention to Download the latest version
One line of code compares the age size of User A and User B (lists all dates between two dates)