thymeleaf中数字类型转化为字符串

thymeleaf中数字类型转化为字符串


id为int类型的0

<span th:if="${id == 0}">true</span> 
<span th:if="${id == '0'}">false</span> 
<span th:if="${id+'' == '0'}">true</span> 

你可能感兴趣的:(thymeleaf)