JSTL和EL

1、EL---Expression language(表达式语言);

2、JSTL---Jsp Standard Tag Library(JSP标准标签库);

  <c:forEach var="i" begin="1" end="9" varStatus="status">

     ${status.index}
  </c:forEach>

   通过varStatus="status" 然后使用 ${status.index}可以取得循环的次数,第几次循环;

猜你喜欢

转载自www.cnblogs.com/newbest/p/9130138.html