标签的使用-流程控制标签

时间:2020-12-30 16:15:07
  • <c:if>标签必须要有test属性,${ }表达式为ture,则执行body内容;否则不执行。

原始代码:  <c:if test="${all == 1}">

      //body-start

      <th>公告结束时间</th>
      <th>公告状态</th>

      //body-end
      </c:if>

  • <c:if>还有另外两个属性var和scope,待续...