本文主要是介绍小记:后台传递集合,到前台循环时需要给予序号区分,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<%-- 勿忘这玩意:<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> --%>
<c:when test="${not empty varList}">
<c:forEach items="${varList}" var="var" varStatus="vs">
<div id="page${vs.index+1}" style="height:100px;margin-top: 5px; margin-left: 50px;"; hidden="true" class="sss" >
<div style="height:100px;page-break-after:always">
<div style="margin-left:-15px; margin-top:2px; width:450px; height:30px; visibility:visible">
<img src="<%=request.getContextPath() %>/static/tv_img/项目上复制下来的代码.png" width='300' height='50'/>
</div>
<div style="margin-left:-15px; margin-top:20px; width:400px; height:20px; visibility:visible">
<table style="word-break:break-all; word-wrap:break-all;width:500px;">
<tr>
<td width="50%">
<c:if test="${varList.size()>1}">
<p class="lp">序号:${vs.index+1}</p>
</c:if>
<p class="lp">令号:108078</p>
<p class="lp">清单号:F20117435</p>
<p class="lp">零件清单序号:F201811304987</p>
<p class="lp">图号:11</p>
<p class="lp">发货件号:CNU/6</p>
<p class="lp">部件名称:CNU</p>
<p class="lp">数量:1</p>
</td>
<td width="50%">
<img border='0' width="200px" style="padding:0px;position:relative; z-index:-1;margin-left: -30px;margin-top: -30px" height="200px" src="<%=request.getContextPath() %>/getQ.do?id=1516188">
</td>
</tr>
</table>
</div>
</div>
</div>
</c:forEach>
这篇关于小记:后台传递集合,到前台循环时需要给予序号区分的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!