⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test-loopvar.txt

📁 freemaker安装软件
💻 TXT
字号:
<#setting locale="en_US">
---
<#macro myLoop from to>
  <#list from..to as x>
  - <#nested x></#list>*
</#macro>
<#list 2..1 as i>
  ${i}
  <@myLoop from=1 to=3; i>
    L1 ${i}
    <@myLoop from=1 to=2; i>
      L2 ${i}: <#list 1..3 as i>${i}; </#list>
    </@>
  </@>
</#list>
---
<#macro repeat count>
  <#list 1..count as x>
    <#nested x, x/2, x==count>
  </#list>
</#macro>
<#macro test2>
<#local c = 123>
<@repeat count=4 ; c, halfc, last>
  <#local c = .locals.c + 0.1>
  ${c} ${halfc}<#if last> Last!</#if>
</@repeat>
${c}
</#macro>
<@test2/>
---

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -