时间插件,使用laydate.js文件

<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'demo.jsp' starting page</title>

  <script src="laydate/laydate.js"></script>
<!-- <style>
html{background-color:#E3E3E3; font-size:14px; color:#000; font-family:'微软雅黑'}
h2{line-height:30px; font-size:20px;}
a,a:hover{ text-decoration:none;}
pre{font-family:'微软雅黑'}
.box{970px; padding:10px 20px; background-color:#fff; margin:10px auto;}
.box a{padding-right:20px;}
</style> -->
</head>
<body>
<div style="970px; margin:10px auto;">
    演示一:<input placeholder="请输入日期" class="laydate-icon" onclick="laydate()">
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</div>
<!-- <script>
;!function(){

//laydate.skin('molv');

laydate({
   elem: '#demo'
})

}();
</script> -->
</body>
</html>

原文地址:https://www.cnblogs.com/0280-hnn/p/6945661.html