前端thymeleaf下拉框select、input框中的date类型js回显问题
1. thymeleaf下的select回显
<select id="genderSelect" name="sizeSelect" class="selectpicker" title="请选择" data-dropup-auto="false" >
<option th:selected="${employee.gender==‘0‘}" value="0">男</option>
<option th:selected="${employee.gender==‘1‘}" value="1">女</option>
</select>
2. input中的date类型回显
<div class="col-sm-10">
<input id="birthday" type="date" class="form-control" th:value="${#dates.format(employee.birthday, ‘yyyy-MM-dd‘)}">
</div>