1、拼接href \src
src示例:
<img th:src="@{/img/research/{filename}(filename=${research.filename})}">
href示例:
<a th:href="@{'https://'+${url.url}}" th:text="${url.urlName}"></a>
2、拼接onclick
方式1、
<button class="btn" th:οnclick="'audit(' + ${items.id} + ');'">通过审核</button>
方式2、
<button th:οnclick="|audit(${items.id} )|">通过审核</button>