1.freemaker中a标签强制下载 【?attname=${e?url}】 <a href="${(e)!''}?attname=${e?url}" download target='_blank'>${o.fieldName}下载</a> 2.freemaker中string变array 【?split()】 <#list "${e}"?split(":") as time> <#if time_index == 0> ${time}时 <#elseif time_index == 1> ${time}分 <#elseif time_index == 2> ${time}秒 </#if> </#list> 3.freemaker中数组传递到js中 var questionaryFieldsAList = [<#list questionaryFieldsAList as a>${a}<#if a_has_next>,</#if></#list>]; 4.freemaker中如何处理含有单双引号字符的字符串 此时,只需将${m.name} 替换成 ${m.name?js_string}即可