暂时常常用的只有一种java
一、得到controller 层传来的数据 例如 timeide
二、直接上代码 你懂得 option中 加 selected 为默认选中it
<select id="xx" > <c:forEach items="${xxx}" var="pin"> <option value ="${pin}" <c:if test="${time eq pin}">selected</c:if>>${pin} </option> </c:forEach> </select>