我正在使用 cfloop 中的大量项目。我想减少它并添加分页。在我的 cfloop 中是否有将数组限制为前 10 个?
我有
<cfloop array="#qryItems#" index="index">
我试过把它变成一个条件循环,没有运气和其他一些东西。好久没碰coldfusion了,有点生疏了。谷歌没有帮助哈哈
我努力了
<cfloop from="1" to="10" array="#qryItems#" index="index">
并且还尝试了 max_rows
<cfloop maxrows="10" array="#qryItems#" index="index">
每次我收到错误信息
“标签 CFLOOP 的属性验证错误。”