I want to remove the first 2 amounts and keep the last 3 groups. How to change it?
I want to remove the first 2 amounts and keep the last 3 groups. How to change it?
If you want it to be simple, just change it like this
<code><?php $number=$number+1; if($number>2){ ?> </code>
<code> <?php } ?></code>
You can take a look at the ThinkPHP volist related documents. Do it yourself, have enough food and clothing, check the official documents first, and then google.
You should have two ways to solve this problem:
Modify volist
and set offset
.
<code><volist name="list" id="vo" offset="5" length='10'> {$vo.name} </volist></code>
Modify Model data acquisition
, use SQL, or PHP logic to skip the first two pieces of data.
Just modify the attribute value of volist or remove the first 2 pieces of data when getting the value in the background