happy-kate

从数据库中取出的10条商品数据分两行显示,每行5条。

<%

for(int i=0; i<latestProducts.size(); i++) {

  Product p = latestProducts.get(i);

%>

........

<%

  if((i+1)%5==0)

    out.println("</tr><tr>");

}

%>

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-06-22
  • 2021-11-30
  • 2021-11-30
  • 2022-12-23
  • 2021-11-30
  • 2021-12-05
  • 2021-08-31
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-11-06
  • 2021-12-08
  • 2022-12-23
相关资源
相似解决方案