-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
92 lines (88 loc) · 3.07 KB
/
test.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
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="calendar.css">
<script src="https://cdn.bootcss.com/jquery/3.4.0/jquery.min.js"></script>
</head>
<script src="static/js/jquery.min.js"></script>
<script src="calendar.js"></script>
<body>
<div class="calendar-box demo-box"></div>
<script>
$('.calendar-box').calendar({
ele: '.demo-box', //依附
title: '选择预约时间',
// beginDate : '2017-10-07',
// endDate : '2017-12-04',
data: [
{date: '2017-10-07', data: '107'},
{date: '2017-10-08', data: '108'},
{date: '2017-10-09', data: '109'},
{date: '2017-10-10', data: '110'},
{date: '2017-10-11', data: '111'},
{date: '2017-10-12', data: '112'},
{date: '2017-10-13', data: '113'},
// {date:'2017-10-14',data:'114'},
{date: '2017-10-15', data: '115'},
{date: '2017-10-16', data: '116'},
{date: '2017-10-17', data: '117'},
{date: '2017-10-18', data: '118'},
{date: '2017-10-19', data: '119'},
{date: '2017-10-20', data: '120'},
{date: '2017-10-21', data: '121'},
{date: '2017-10-22', data: '122'},
{date: '2017-10-23', data: '123'},
{date: '2017-10-24', data: '124'},
{date: '2017-10-25', data: '125'},
{date: '2017-10-26', data: '126'},
{date: '2017-10-27', data: '127'},
{date: '2017-10-28', data: '128'},
{date: '2017-10-29', data: '129'},
// {date:'2017-10-30',data:'130'},
{date: '2017-10-31', data: '131'},
{date: '2017-11-01', data: '101'},
{date: '2017-11-02', data: '102'},
{date: '2017-11-03', data: '103'},
{date: '2017-11-04', data: '104'},
{date: '2017-11-05', data: '105'},
{date: '2017-11-06', data: '106'},
{date: '2017-11-07', data: '107'},
{date: '2017-11-08', data: '108'},
{date: '2017-11-09', data: '109'},
{date: '2017-11-10', data: '110'},
{date: '2017-11-11', data: '111'},
// {date:'2017-11-12',data:'112'},
{date: '2017-11-13', data: '113'},
{date: '2017-11-14', data: '114'},
{date: '2017-11-15', data: '115'},
{date: '2017-11-16', data: '116'},
{date: '2017-11-17', data: '117'},
{date: '2017-11-18', data: '118'},
{date: '2017-11-19', data: '119'},
{date: '2017-11-20', data: '120'},
{date: '2017-11-21', data: '121'},
{date: '2017-11-22', data: '122'},
{date: '2017-11-23', data: '123'},
{date: '2017-11-24', data: '124'},
{date: '2017-11-25', data: '125'},
{date: '2017-11-26', data: '126'},
{date: '2017-11-27', data: '127'},
{date: '2017-11-28', data: '128'},
{date: '2017-11-29', data: '129'},
{date: '2017-11-30', data: '130'},
{date: '2017-12-01', data: '121'},
{date: '2017-12-02', data: '122'},
{date: '2017-12-03', data: '123'},
{date: '2017-12-04', data: '124'},
]
});
function getActive() {
var data = $('.calendar-box').calendarGetActive();
console.log(data);
alert(data.date + "--¥" + data.money);
}
</script>
</body>
</html>