thymeleaf中三元运算符嵌套写法
<td th:text="${enquiry.categoryUniqueId}==1?'技术方案':(${enquiry.categoryUniqueId}==2?'交货周期':'报价')"></td>
<table class="table table-striped table-sm">
<thead>
<tr>
<th>#</th>
<th>询单编号</th>
<th>电梯类型</th>

本文详细介绍了Thymeleaf模板语言中如何进行三元运算符的嵌套使用,通过实例解析了其语法结构和应用场景,帮助开发者更好地理解和应用Thymeleaf条件判断。
最低0.47元/天 解锁文章
2029

被折叠的 条评论
为什么被折叠?



