thymeleaf th:if表达式语法
1.比较运算符 gt:great than(大于)> ge:great equal(大于等于)>= eq:equal(等于)== lt:less than(小于)< le:less equal(小于等于)<= ne:not equal(不等于)!= 2.网页应用 <td class="td-status" th:if="${product.status} eq 1"> <span class="label label-success radius">已上架</span> </td> <a th:if="${product.status} ne 2 " class="ml-5" href="javascript:;" title="发布秒杀"> <i class="Hui-iconfont"></i> </a> 来源: https://www.cnblogs.com/liabin/p/11647319.html