我想在Thymeleaf方言中使用Thymeleaf方言,但没有。我试过了,但也没有用:
<h2 th:text="|${response.name} has: |">
Dunie has:
<span th:text="|-${response.size}-|" class="paleo">-4-</span>
</h2>th:text of h2删除了其中的所有内容。我想在渲染后得到这样的东西:
<h2>
Philie has:
<span class="paleo">-3-</span>
</h2>那么,我该怎么做我的目标呢?
发布于 2016-10-10 12:47:18
使用th:块 http://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#synthetic-thblock-tag
<h2>
<th:block th:text="|${response.name} has: |" />
<span th:text="|-${response.size}-|" class="paleo"></span>
</h2>https://stackoverflow.com/questions/39947566
复制相似问题