This repository has been archived by the owner. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
60 lines (56 loc) · 1.54 KB
/
demo.html
File metadata and controls
60 lines (56 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>ejDate-Demo</title>
<link rel="stylesheet" href="dist/jquery.ejDate.min.css">
<script src="https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
<script src="dist/jquery.ejDate.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
}
body {
font-family: "Microsoft YaHei",Arial,Helvetica,sans-serif;
}
.wrap {
width: 500px;
margin: 20px auto;
text-align: center;
}
.wrap h1 {
margin-bottom: 15px;
}
input[type="text"] {
display: block;
width: 100%;
height: 20px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.42857143;
color: #555;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
border-radius: 4px;
}
</style>
</head>
<body>
<div class="wrap">
<h1>ejDate.js</h1>
<input type="text" id="demo_ejdate">
</div>
<script>
$('#demo_ejdate').ejDate({
yearULV:2020, // 设置年份的上限值
yearDLV:1970, // 设置年份的下限值
disabledDateReg:/2016y10m((11d)|(15d))/, //筛选不可选日期的正则
checkedDateFunc:function(date){ // 选中日期后执行的回调函数
console.log(date);
}
});
</script>
</body>
</html>