把js中的if多条件判断修改成jstl中标签判断逻辑拆分的问题!if (result[k].answerer = null && ((result[k].initialState == 1 && result[k].hasAudit) || result[k].initialState == 0))){ if (result[k].replyWarningType == 1 || result[k].au
把js中的if多条件判断修改成jstl中标签判断逻辑拆分的问题!if (result[k].answerer = null && ((result[k].initialState == 1 && result[k].hasAudit) || result[k].initialState == 0))){ if (result[k].replyWarningType == 1 || result[k].au
把js中的if多条件判断修改成jstl中标签判断逻辑拆分的问题!
if (result[k].answerer = null && ((result[k].initialState == 1 && result[k].hasAudit) || result[k].initialState == 0))){ if (result[k].replyWarningType == 1 || result[k].auditWarningType == 1) { tablestr += ""; } if (result[k].replyWarningType >= 2 || result[k].auditWarningType >= 2) { tablestr += ""; } }因为程序需要要把js中if判断条件转换成在jsp页面使用标签或者来实现判断.如何编写代码才能实现!
把js中的if多条件判断修改成jstl中标签判断逻辑拆分的问题!if (result[k].answerer = null && ((result[k].initialState == 1 && result[k].hasAudit) || result[k].initialState == 0))){ if (result[k].replyWarningType == 1 || result[k].au
<body>
<c:if test="${not empty result[k].answerer and ((result[k].initialState eq 1 and result[k].hasAudit eq true) or result[k].initialState eq 0)}">
<c:choose>
<c:when test="${result[k].replyWarningType eq 1 or result[k].auditWarningType eq 1}">
<!-- 满足条件 -->
</c:when>
<c:otherwise>
<!-- 不满足条件 -->
</c:otherwise>
</c:choose>
</c:if>
</body>
不知道你的k是什么 按js拆过来是这个样子的;eq是==的意思;<c:choose>相当于if else