html页面中选择时间
注意:需要导入包。
<script src="${request.contextPath}/js/bootstrap-datetimepicker.js"></script>
<div>
<input id="chTime" name="time">
</div>
$(function(){
$("#chTime").datetimepicker({
format: "yyyy-mm-dd",
autoclose: true,
todayBtn: true,
pickerPosition: "bottom-left",
minView: "month",
bootcssVer:3,
keyboardNavigation:true //方向键选择日期
});
});