JSP 基础之 JSTL <c:choose>用法 if else
1 2 3 4 5 6 7 8 9 10 11 | <c:choose> <c:when test= "${condition1}" > condition1为 true </c:when> <c:when test= "${ condition2}" > condition2为 true </c:when> <c:otherwise> condition1和condition2都为 false </c:otherwise> </c:choose> |
【推荐】100%开源!大型工业跨平台软件C++源码提供,建模,组态!
【推荐】AI 的力量,开发者的翅膀:欢迎使用 AI 原生开发工具 TRAE
【推荐】2025 HarmonyOS 鸿蒙创新赛正式启动,百万大奖等你挑战