In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article analyzes "how to solve the problem of nesting of WebWork tags". The content is detailed and easy to understand, "how to achieve WebWork tag nesting problem analysis" interested friends can follow the editor's ideas slowly in-depth to read, I hope that after reading can be helpful to everyone. Let's learn more about "how to solve the problem of nesting of WebWork tags" with the editor.
Let's first take a look at the problem of nesting WebWork tags.
< ww:iterator value= "yesePrograms" status= "outer" > < li > < ww:iterator value= "programsOfRole" status= "rowstatus" > < ww:if test= "id= = [1] .id" > < input type= "checkbox" id= "pid" name= "pid" checked= "checked" value= "< ww:property value=" id "/ > < / ww:if > < / ww:iterator > < input type=" checkbox "id=" pid "name=" pid "value=" < ww:property value= "id" / > "/ > < ww:property value=" title "/ > < / li > < / ww:iterator >
The key code for nesting WebWork tags is
< ww:if test= "id = = [1] .id" > < ww:if test= "id = = [1] .id" >
In the value stack, [0] represents the top element of the stack, and if it is not written, it defaults to the top of the stack; [1] is the second element, and so on.
Both the outer and inner layers have an id attribute
* id represents the id of the inner loop
[1] .id represents the id of the outer loop
Add: the layer currently called is always the top of the stack, and the call uses [0]
WebWork tag nesting in double-layer nesting, classified display examples (omitting redundant tags)
< ww:iterator value= "grouplist" > < ww:property value= "[0] .group _ name" / > < / td > < ww:iterator value= "userlist" > < ww:if test= "[0] .group _ id = = [1] .group _ id" > < ww:property value= "name" / > < ww:property value= "fax_number" / > < ww:property value= "name_des" / > < / ww:if > < / ww:iterator > < / ww : iterator > so much for parsing the problem of how to implement WebWork tag nesting. I hope that the above content will enable you to improve. If you want to learn more knowledge, please pay more attention to the editor's updates. Thank you for following the website!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.