fre*_*ent 0 random coldfusion image filter
只是想知道,有没有办法从ColdFusion cfdirectory查询中选择最多5个随机结果.
我可以做这个:
<cfdirectory action="list" directory="#expandpath("some/")#" filter="tag*.*" name="dir">
Run Code Online (Sandbox Code Playgroud)
这给了我所有的图像
tag123.jpg
tag111.jgp
tag234.jpg...
Run Code Online (Sandbox Code Playgroud)
我可以使用maxrows输出,但有没有办法从总共过滤的20幅图像中选择5个随机图像?
感谢您的一些见解!