0
我有兩個thymeleaf片段如下包裝塊到其它塊thymeleaf
<div th:fragment="inputText">
<input type="text"/>
</div>
<div th:fragment="fieldSet"></div>
要包括文本框入字段集,我試圖調用它像
<div th:include="fieldSet">
<th:block th:include="inputText/>
</div>
此內字段集不包括的inputText。它只呈現fieldSet。
有什麼辦法可以在片段中包含片段嗎?