我很难理解这一点。我怎样才能将结果限制为50。比方说,如果在目录中我有1000个文件,我怎么能限制它,以便只有50个文件被循环。cfdirectory循环限制结果
<cfdirectory action="list" directory="#ExpandPath('/downloaded/')#" name="listRoot" filter="*.xml" recurse="false" sort="datelastmodified asc">
<cfoutput>
<cfloop query="listRoot" from="1" to="50" index="i">
....
</cfloop>
</cfoutput>
当我运行上面的代码中,我得到了以下错误消息
属性验证错误标签CFLOOP。