我正在尝试在表单的每个输入行后添加
这是我遇到问题的代码片段:
如果我在输入标签外添加
提前感谢。
<br>
,但是Thymeleaf一直给我解析错误。这是我遇到问题的代码片段:
<form th:if="${not #lists.isEmpty(brands)}">
<input th:each="brand : ${brands}" type="checkbox" th:value="${brand.name}" th:utext="${brand.name + <br>}" />
</form>
如果我在输入标签外添加
<br>
标签,它不会将其添加到每一行中。提前感谢。
th:utext="${brand.name}" + "<br>"
吗?如果是,那么这是 Thymeleaf 的语法错误。 - Jail