小记:后台传递集合,到前台循环时需要给予序号区分

<%-- 勿忘这玩意:<%@ 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>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值