We are developing requirements , use thymeleaf When traversing a collection , Sometimes we need to do collection interception , For example, only before getting the collection 6 Data ;
<div class="wap_course_item" th:each="hktj,hktjStat:
${application.courseHktjList}" th:if="${hktjStat.count}<=6"> <a target="_blank"
th:href="'/course/'+${hktj.id}"> <b class="img"> <img class="lazy" th:src=
"'/courseImages/'+${hktj.imageName}" th:alt="${hktj.name}" style="display:
inline;"> </b> <div class="content"> <h5 th:title="${hktj.name}" th:text="
${#strings.abbreviate(hktj.name,20)}"></h5> </div> </a> </div>
We can go through Stat Object's count attribute , use th:if Judge to realize the collection interception function ;

Show only 6 Data ;

©2019-2020 Toolsou All rights reserved,
LED Scrolling text Hackbar Using the tutorial use PyMC3 Bayesian statistical analysis was performed ( code + example )( Essence )2020 year 7 month 12 day webpack Use of common plug-ins pytorch of ResNet18( Yes cifar10 The accuracy of data classification is achieved 94%)Result Encapsulation of return result information SpringBoot JpaRepository Database addition, deletion, modification and query python Dynamic programming for single source shortest path Front end to background 5 Summary of different ways ( Essence )2020 year 7 month 15 day Wechat applet template Use of