时间插件,使用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{width:970px; padding:10px 20px; background-color:#fff; margin:10px auto;}
.box a{padding-right:20px;}
</style> -->
</head>
<body>
<div style="width: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>

posted @ 2017-06-05 16:36  蓁蓁  阅读(1713)  评论(0编辑  收藏  举报