
thymeleaf
文章平均质量分 60
现学现卖
wqr111
这个作者很懒,什么都没留下…
展开
-
thymeleaf:字符串Strings常见的使用方法
判断是不是为空:null:<span th:if="${name} != null">不为空</span><span th:if="${name1} == null">为空</span>判断是不是为空字符串: “”<span th:if="${#strings.isEmpty(name1)}">空的</span>判断是否相同:<span th:if="${name} eq 'jack'">相同于jac...转载 2021-12-15 14:27:16 · 1867 阅读 · 0 评论 -
thymeleaf th:表达式总结
gt:great than(大于)>ge:great equal(大于等于)>=eq:equal(等于)==lt:less than(小于)<le:less equal(小于等于)<=ne:not equal(不等于)!=eg:例子应用<span th:if="${each ne null}"> <span>显示 </span><span th:i...原创 2021-12-15 14:10:52 · 1986 阅读 · 0 评论