我的笔记javascript
<div class="weui-loadmore">
<div th:if="${list.count gt '4'}">
<i class="weui-loading"></i>
<span class="weui-loadmore__tips">正在加载</span>
</div>
<div th:if="${list.count lt '4'}">
<span class="weui-loadmore__tips">没有数据了</span>
</div>
</div>java
使用Thymeleaf如何动态定义背景图,以下代码(须要注意单引号!!!):ui
<div class="placeholder thm_left" th:with="tmh=${tmhInfo}" th:style="'background:url(' + ${tmh[0].pic} + ') no-repeat center center / cover;'" >
</div>url
我这里${tmh[0].pic}是一个图片的urlspa