freemarker多个checkbox被选中示例

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

一共俩list,一个list是resourceTypeList,显示所有的资源类型列表,一个list是checkedResourceTypeList,被选中每个资源的编码,实现效果如图

代码如下:

上传资源分类:全选
<#list resourceTypeList as dict> <#if checkedResourceTypeList??> <#list checkedResourceTypeList as checkedResource> checked > ${dict.name } <#else> ${dict.name } <#if (dict_index+1)%6==0>



转载于:https://my.oschina.net/ydsakyclguozi/blog/184873

你可能感兴趣的:(freemarker多个checkbox被选中示例)