-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
77 lines (72 loc) · 1.59 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script src="jquery.js"></script>
<link rel="stylesheet" href="huicalender/css/huicalendar.css">
<script src="huicalender/js/huicalendar.js"></script>
</head>
<body>
<div class="test">
<!-- <table class="huicalendar" cellspacing="0">
<thead>
<tr>
<th><span class="left"></span></th>
<th colspan="2" class="month">八月
<ul><li>一月</li><li>一月</li></ul>
</th>
<th colspan="3" class="year">2016年</th>
<th><span class="right"></span></th>
</tr>
<tr class="week">
<th>日</th>
<th>一</th>
<th>二</th>
<th>三</th>
<th>四</th>
<th>五</th>
<th>六</th>
</tr>
</thead>
<tbody>
<tr>
<td>31</td>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
</tr>
<tr>
<td>7</td>
<td class="enabled">8</td>
<td class="enabled">9</td>
<td class="enabled">10</td>
<td>11</td>
<td>12</td>
<td>13</td>
</tr>
</tbody>
</table> -->
</div>
<script>
$('.test').huicalendar({
enabledDay: [1,2,3],
viewDay: new Date('2016/08/01')
}).on('changeMonth', function(e){
console.log(e.year)
console.log(e.month)
$(this).huicalendar({
enabledDay: [4,5,6],
viewDay: new Date(e.year+'/'+e.month+'/01')
}, 'update')
}).on('changeDate', function(e){
console.log(e.year)
console.log(e.month)
console.log(e.date)
})
</script>
</body>
</html>