Js日历小插件 <script type="text/javascript"src="${pageContext.request.contextPath}/js/jquery-1.8.3.js"></script> <script type="text/javascript"src="${pageContext.request.contextPath}/js/jquery-ui-1.8.18.custom.min.js"></script> <link rel="stylesheet"href="${pageContext.request.contextPath}/js/jquery-ui-1.8.18.custom.css"type="text/css"></link> //日历 $("#toTime").datepicker({ minDate : new Date(1980, 0, 01), maxDate : new Date(2020, 11, 31), yearRange : '-40:+30', changeMonth : true, changeYear : true, dateFormat : 'yy-mm-dd' });