图片:
详细代码:
<li class="li_2">
<h2 class=" mb5">${thematic.title }发布</h2>
<span class="f14 ">${thematic.documentName } ${thematic.information }</span>
</li>
问题:
${thematic.information }值为1,2,3 我想把 1变成"这是第一个"
2变成"这是第二个"
...
显示在页面上
不知道应该怎么写代码,大神知道下
以解决:代码入下
<c:if test="${thematic.information == 1}">平面/互联网</c:if>
<c:if test="${thematic.information == 2}">微博</c:if>
<c:if test="${thematic.information == 3}">微信</c:if>
<c:if test="${thematic.information == 4}">电视/电台</c:if>