Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建一些列表框。但是我想创建的列表框的数量是动态的(我只会在运行时知道我需要多少个列表框),那么我该如何编写代码呢?
因为 Thymeleaf 中的每个循环th:each都是你的朋友。所以也许你需要一个额外的 div-Tag
th:each
<div th:remove="tag" th:each= ...> </div>