取得list的长度:${fields?size}。
用?size不是用?length,代码如下所示:
<#list properties as item>
<#assign layer = item.dispalyName?split(",") />
<#assign number = layer?size />
<#assign width = 70*number />
<Column ss:Index="${count}" ss:Width="${width}" />
<#assign count = count + 1>
</#list>