可以创建 n 个字符或从字符串创建 n 个字符的 Freemarker 模板字符串实用程序?
Freemarker template string util that can create n number of characters or from a string?
是否有字符串 util 可以做这样的事情
<#assign junk="repeatMe"/>
${string.utils.repeat(垃圾,2)}
输出:
repeatMerepeatMe
你可以这样做:
<#assign junk = "repeatMe" />
<#list 0..1 as x>${junk}</#list>
是否有字符串 util 可以做这样的事情
<#assign junk="repeatMe"/> ${string.utils.repeat(垃圾,2)}
输出: repeatMerepeatMe
你可以这样做:
<#assign junk = "repeatMe" />
<#list 0..1 as x>${junk}</#list>