当前位置: 代码迷 >> Java Web开发 >> jstl c:if如何判断两个值大小
  详细解决方案

jstl c:if如何判断两个值大小

热度:510   发布时间:2016-04-16 22:03:48.0
jstl c:if怎么判断两个值大小

                      <c:forEach items="${netNameAuditmap}" var="item" varStatus="c">
                       <tr class="chart_table_even">
                         <td>
                             <span class="xuhao_con">${c.count}</span>
                            </td>
                            <td>
                             <span class="diqu_con">${item.area} </span>
                            </td>
                            <td>
                             <span class="zongliang_con">${item.amount}</span>
                            </td>
                            <td>
                             <span class="baifenbi_con">
                                 <div class="baifenbi_num">${item.cal}</div>
                                 <div class="baifenbi_tiao">
                                     <div class="baifenbi_tiao_in"></div>
                                    </div>
                                </span>
                            </td>
                                <td><span class="zongliang_con">${item.day0}</span></td>
                                <td><span class="zongliang_con">${item.day1}</span></td>
                                <td><span class="zongliang_con">${item.day2}</span></td>

                            <td>
                             <span class="qushi_up"></span>
                            </td>
                         </tr>
                          </c:forEach>

红页部分我想判断${item.day1}和${item.day2}大小 如果${item.day1}显示<span class="qushi_up">,如果小不显示,该怎么写
------解决方案--------------------
<c:if test=${item.day1>item.day2}>这里写你要显示的数据</c:if>
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!
 
  • 最近登录:Sat Jun 23 23:53:24 CST 2018
  • 最近登录:Sat Jun 23 23:53:24 CST 2018
  • 最近登录:Sat Jun 23 23:53:24 CST 2018
  • 最近登录:Sat Jun 23 23:53:24 CST 2018
  • 最近登录:Sat Jun 23 23:53:24 CST 2018