web开发学习笔记(6):<c:if>标签的使用
分类:web开发
算术运算符 + 、 – 、 * 、 / (或 div )和 % (或 mod )
关系运算符 == (或 eq )、 != (或 ne )、 < (或 lt )、 > (或 gt )、 <= (或 le )和 >= (或 ge )
逻辑运算符 && (或 and )、 || (或 or )和 ! (或 not )
验证运算符 empty例子:首次使用时,主要是注意运算符的位置<c:if test="${li.type==1 and li.selectType==0}">单项选择题</c:if><c:if test="${li.type==1 and li.selectType==1}">多项选择题</c:if><c:if test="${li.type==0}">问答题</c:if>例子:<td><c:if test="${li.patientSex==null}">未设置</c:if><c:if test="${li.patientSex==0}">男</c:if><c:if test="${li.patientSex==1}">女</c:if></td>其他的运算符大同小异。
上一篇MyEclipse常见问题集合,不断更新下一篇MATLAB学习笔记(2):求矩阵最大值max函数,求矩阵最小值min函数
顶0踩0
,我要准备好行李启程了,谢谢关心我的家人和朋友,