JS:c标签if的使用

xiaoxiao2025-08-06  21

<select <c:if test="${toyCardVo.id!=''}">disabled="disabled"</c:if> class="col-xs-12" id="type" name="type"style="padding: 2px 2px;" > <option value="" >请选择卡类型</option> <c:forEach items="${cradTypeList}" var="cradType" varStatus="statu"> <option value="${cradType.id}" <c:if test="${cradType.id == toyCardVo.type}"> selected="selected"</c:if> > ${cradType.name}</option> </c:forEach> </select>

if中test的value值不能写成<c:if test="${toyCardVo.id}!=''">!=必须写在大括号里面。

转载请注明原文地址: https://www.6miu.com/read-5034383.html

最新回复(0)