html页面选择时间

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   //方向键选择日期
		    });
});

猜你喜欢

转载自blog.csdn.net/qq_40247975/article/details/85953054