html语言翻译

来源:百度知道 编辑:UC知道 时间:2024/05/26 14:03:19
<c:forEach var="classInfo" items="${PAGE.pageContent}">

<tr onMouseOver="this.style.backgroundColor='#f4f4f4'"
onMouseOut="this.style.backgroundColor='#ffffff'">
<td>${classInfo.classId}</td>
<td>
<c:choose>
<c:when test="${classInfo.trainOrgId==1}">福州市鼓楼区教育培训中心</c:when>
<c:when test="${classInfo.trainOrgId==2}">福州市台江区教育培训中心</c:when>
<c:when test="${classInfo.trainOrgId==3}">福州市仓山区教育培训中心</c:when>
</c:choose>

</td>
<td >
<c:choose>
<c:when test="${classInfo.electType==3}">高压</c:when&

<c:开始的标签是jstl核心标签库中的标签
<c:forEach>用于遍历集合,items属性表示集合,var是用于遍历集合的变量
<c:choose>和<c:when>嵌套使用,其实就相当于一个if-else选择语句
<c:when>中的test属性即是判断条件

${表达式}是EL表达式,可以快速方便的访问作用域通信对象中的变量

<c:应该是你们公司自定义的东西

<c:forEach var="classInfo" items="${PAGE.pageContent}"> 就是拿到纪录后,循环声称每一行

<tr onMouseOver="this.style.backgroundColor='#f4f4f4'"
onMouseOut="this.style.backgroundColor='#ffffff'">
鼠标放上去和离开的时候变颜色

<c:choose>贵公司定义的下拉列表

<td>${classInfo.trainYear} </td>
这些就是后台取得的数据和前台的邦定

其他<td>同理