这是我的语法
<#if datas?? && (datas?size > 0)>
<#list datas as head>
{
"sourceId":"${head.sourceId?c}",
"operaType":"${head.operaType!}"
}
</#list>
</#if>
如果改成以下,就不报错,但是我就没办法处理超过四位数带逗号的数字格式
<#if datas?? && (datas?size > 0)>
<#list datas as head>
{
"sourceId":"${head.sourceId}",
"operaType":"${head.operaType!}"
}
</#list>
</#if>
其中 ${head.sourceId} 这个数值实际为"1480",请问这种不能加?c的语法吗?还是只能数字才可以加?c 我把"${head.sourceId?c}"改成${head.sourceId?c}
也报相同的cuo'wu