索引循环

使用 from 和 to 属性指定应发生的迭代次数。 (可选)step 属性允许你确定增量的大小。

<cfloop from="1" to="10" index="i" step="2">
    <cfoutput>
        #i#<br />
    </cfoutput>
</cfloop>