Home >Web Front-end >HTML Tutorial >jsp页面{for}_html/css_WEB-ITnose

jsp页面{for}_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:39:41996browse

{for list in lists}
&& request.getSelectedAccount().accountNo == list.accountNo}mainTr_S{else}mainTr{/if}' 
onclick='javascript: if (this.className == "mainTr_S") return; 
if (!request.selectAccount("${list.accountNo}")) return; 
switchAccountTab($("accountBizTab")); 
try { getElementsByClassName("mainTr_S", "accountsTable")[0].className = "mainTr" }
 catch (e) {} 
 this.className = "mainTr_S"'
  oncontextmenu="return showContextMenu(event, 2, '${list.accountNo}')">
${list.feeBookNo}
  ${list.accountStateNm}

{/for}
jsp页面中用{for}这,搞的我有点晕,有人出来解释下吗,这到底是什么

回复讨论(解决方案)

不就是循环lists里边的数据来显示嘛。

可是java中没有这么写的啊,标签不像标签。for循环也不是这么写的啊,你看清楚啊

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn