标签:input log creat text 获取 index 下标 blog logs
1:循环遍历
<c:forEach items="${partsDeltailsList}" var="var" varStatus="vs"> <tr id="${var.sup_id}"> <td class=‘center‘ style="width: 30px;">${vs.index+1}</td> <td class="center">${var.create_datetime }</td> <td class="center">${var.sup_name }</td> <td class="center">${var.pur_order_no }</td> <td class="center">${var.inv_actual }</td> <td class="center">${var.pur_price }</td> <td class="center">${var.inv_actual * var.pur_price }</td>
</tr> </c>
2:通过下标获取
<input type="text" value="${partsDeltailsList[0].parts_name}"/>
标签:input log creat text 获取 index 下标 blog logs
原文地址:http://www.cnblogs.com/YangK-java/p/6498039.html