One line of code compares the age of user A and user B (list all dates of the two-day period), one line
Example 1:
One line of code compares the age of user A and user B, andList all dates from user A to user B's birthday
<edate id=test list><we start="@{pPage:userABirthday}" end="@{pPage:userBBirthday}" format=”yyyy-MM-dd” /></edate>
Note that a list parameter is added.
Output the computed date list
<B> all dates from user A to user B </B> <table border = 1> <for bags = test end = "@ {test: getLength} "> <if x =" @ {test: getSuffix} "> <tr x = 0> <for end =" @ {test: getWidth} "> <th >@{ test :@{: getSuffix }}</th> </for> </tr> </if> <tr> <for end = "@ {test: getWidth} "> <td >@{ test :@{: getSuffix }}</td> </for> </tr> </for> </table>
Effect
Complete code
<Html> <title> list all dates between user A and user B's birthday </title>
Pass@ {Test: key}You can retrieve the expected results.
(Example file: _ samples/date-2list.html) inLight PlatformUnder the _ samples Directory
Easy!
Download Easy Do IT resources
Platform and the latest development manual free download: http://download.csdn.net/detail/tx18/8464425
Development Instance:Light B2C e-commerce websites, Free download: http://download.csdn.net/detail/tx18/8318585
The light-Open Platform will occasionally upgrade to provide more powerful and Easy functions for you. Please note thatDownload the latest version