【发布时间】:2018-04-16 22:41:56
【问题描述】:
是否可以从文件夹中获取所有图像?
我的意思是我有这样的图像结构
folder1 ---
---image1.jpg
---image2.jpg
---image3.jpg
folder2 ---
---image1.jpg
---image2.jpg
如何在 html 中显示所有图像?
@编辑
只有我的尝试:
<p th:each="i: ${#numbers.sequence(1, 5)}">
<img th:src="@{/folder/001/0.jpg}"/>
</p>
【问题讨论】:
-
你的代码在哪里?你尝试了什么?