thymeleaf 判断list是否为空 为null 是否有值
/*
* Check whether list is empty
*/
${#lists.isEmpty(list)}
<div th:if="${#lists.isEmpty(orders)}"> NO ORDERS.</div>
时间:2022-12-09 08:40:32
thymeleaf 判断list是否为空 为null 是否有值
/*
* Check whether list is empty
*/
${#lists.isEmpty(list)}
<div th:if="${#lists.isEmpty(orders)}"> NO ORDERS.</div>