forked from Hacker233/JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (34 loc) · 952 Bytes
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>日期选择器</title>
<link rel="stylesheet" href="style.css">
<style>
.datepicker {
border: 1px solid #ccc;
border-radius: 4px;
width: 230px;
padding: 5px;
line-height: 24px;
}
.datepicker:focus {
outline: none;
border: 1px solid #1abc9c;
}
</style>
</head>
<body>
<input type="text" class="datepicker">
</body>
<script src="./data.js"></script>
<script src="./main.js"></script>
<script>
// var monthDate = datepicker.getMonthDate(2019, 2);
// console.log(monthDate);
// datepicker.init(document.querySelector('.ui-datepicker-wrapper'))
datepicker.init('.datepicker');
</script>
</html>