Remove a piece of data from the Bag, and one from the bag
Delete A data entry in the schoolbag
Query
<esql module=help id=list>SelectID,Subject,Writer,DayTimeFromMessages</esql>
Delete pre-cycle output
<Table border = 1> <tr> <th> ID </th> <th> topic </th> <th> author </th> <th> time </th> </tr> <chtml> <for bags = list end =@{ list: getLength }>< tr> <td >@{ list: ID }</td> <td >@{ list: Subject} </td> <td >@{ list: writer }</td> <td >@{ list: DayTime }</td> </tr> </for> </chtml> </table>
Effect
Delete a record
<Bag id=list suffix=2 act=del></Bag>
Delete the 2nd + 1 data record in the schoolbag to see if the displayed result is different from the for example.
Cyclic output after deletion
<H4> after deletion, @ {list: getLength} Effect
(Example file: _ samples/bag_del.html)
Download and description of light platform 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