JSTL forEach的索引。。

使用varStatus的index属性即可:

  1. forEach var= "sell" items= "${sellList.list}" varStatus= "idx">
  2. $ {idx. index }

你可能感兴趣的:(JSTL forEach的索引。。)