freemarker以分号或垂直线隔开而循环

 

	<#if areas?exists && areas?size gt 0>
						&nbsp;&nbsp;
						<#assign dy=0>
						<#list areas?if_exists as area>
							<#assign dy=dy+1> 
							<#if dy=10>
								<br>&nbsp;&nbsp;
								<#assign dy=0>
							</#if>
							<input type="checkbox" value="${area.qydm?if_exists}" name="gldss" 
								<#list item.glds?if_exists?split("|") as gld>
									<#if (area.qydm?if_exists?trim) = (gld?if_exists?trim)>checked</#if>
								</#list>>&nbsp;${area.qymc?if_exists}&nbsp;&nbsp;&nbsp;
						</#list>
					<#else>
						暂无地市记录
					</#if>

 

你可能感兴趣的:(freemarker)