c:forEach 显示list集合 如何在单个item 后面 显示详细信息?


http://img.mukewang.com/582d44460001fd9711340187.jpg点击周杰伦的详细信息  让详细信息显示在周杰伦那行的下面?


部分代码:

<!-- 开始循环 -->

<c:choose>

<c:when test="${not empty varList}">

<c:if test="${QX.cha == 1 }">

<c:forEach items="${varList}" var="var" varStatus="vs">

<tr>

<td class='center' style="width: 30px;"><label><input

type='checkbox' name='ids' value="${var.USER_ID}" /><span

class="lbl"></span></label></td>

<td class='center' style="width: 30px;">${vs.index+1}</td>

<td>${var.NAME}</td>

<td>${var.SNO}</td>

<td>${var.GENDER}</td>

<td>${var.DEPARTMENT}</td>

<td>${var.CARD_TYPE}</td>

<td>${var.CARD_CODE}</td>

<td>${var.BIRTHDAY}</td>

<td>${var.IDENTITY}</td>

<td>${var.CREATE_DATE}</td>

<td>${var.REMARK}</td>

<td style="width: 30px;" class="center">

<div class='hidden-phone visible-desktop btn-group'>


<c:if test="${QX.edit != 1 && QX.del != 1 }">

<span

class="label label-large label-grey arrowed-in-right arrowed-in"><i

class="icon-lock" title="无权限"></i></span>

</c:if>

<div class="inline position-relative">

<button class="btn btn-mini btn-info"

data-toggle="dropdown">

<i class="icon-cog icon-only"></i>

</button>

<ul

class="dropdown-menu dropdown-icon-only dropdown-light pull-right dropdown-caret dropdown-close">

<c:if test="${QX.edit == 1 }">

<li><a style="cursor: pointer;" title="编辑"

onclick="edit('${var.USER_ID}');"

class="tooltip-success" data-rel="tooltip" title=""

data-placement="left"><span class="green"><i

class="icon-edit"></i></span></a></li>

</c:if>

<c:if test="${QX.del == 1 }">

<li><a style="cursor: pointer;" title="删除"

onclick="del('${var.USER_ID}');"

class="tooltip-error" data-rel="tooltip" title=""

data-placement="left"><span class="red"><i

class="icon-trash"></i></span> </a></li>

</c:if>

<li><a style="cursor: pointer;" title="详细"

onclick="del('${var.USER_ID}');"

class="tooltip-error" data-rel="tooltip" title=""

data-placement="left"><span class="red"><i

class="icon-info-sign"></i></span> </a></li>

</ul>

</div>

</div>

</td>

</tr>

<tr style="display:none"><td>详细信息</td></tr>


南星2017
浏览 2626回答 1
1回答

慕粉丶文

item点你想要显示的字段或实体的属性
打开App,查看更多内容
随时随地看视频慕课网APP