<div class="context_menu"> <ul <c:choose><c:when test="${requestScope.searchValue != null}"> data-value="${requestScope.searchValue}"</c:when> <c:otherwise>data-type = ${requestScope.searchType}</c:otherwise></c:choose>> <li data-name="product_name" <c:if test="${requestScope.orderBy =='product_name' || requestScope.orderBy ==null}">class="orderBySelect"</c:if>> <span>综合</span> <span class="orderByAsc"></span> </li> <li data-name="product_create_date" <c:if test="${requestScope.orderBy =='product_create_date'}">class="orderBySelect"</c:if>> <span>新品</span> <span class="orderByAsc"></span> </li> <li data-name="product_sale_count" <c:if test="${requestScope.orderBy =='product_sale_count'}">class="orderBySelect"</c:if>> <span>销量</span> <span class="orderByAsc"></span> </li> <li data-name="product_sale_price" <c:if test="${requestScope.orderBy =='product_sale_price'}">class="orderBySelect"</c:if>> <span style="position: relative;left: 3px">价格</span> <span class="orderByDesc <c:if test="${requestScope.isDesc == true}">orderBySelect</c:if>" style="bottom: 5px; left: 6px;"></span> <span class="orderByAsc <c:if test="${requestScope.isDesc == false}">orderBySelect</c:if>" style="top:4px;right: 5px;"></span> </li> </ul> </div>
时间: 2024-02-16 19:17:44 浏览: 162
c语言入门编程之数组操作搜索插入位置.zip
这段代码是一个包含排序选项的菜单,其中有四个选项:综合、新品、销量和价格。它们被包含在一个无序列表中,每个选项都有一个"data-name"属性,表示该选项对应的数据属性,同时也有一个"class"属性,表示当前被选中的选项。此外,价格选项还有两个子元素,表示升序和降序排序。整个菜单是用HTML和JSP标签库编写的。
阅读全文