-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtimeSelect.html
47 lines (45 loc) · 962 Bytes
/
timeSelect.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
<!DOCTYPE html>
<html>
<head>
<meta name="charset" content="utf-8">
<title></title>
<link rel='stylesheet' href="./jquery.timeSelector.css"></link>
</head>
<body>
<div id="timeselector">
</div>
<script src="http://www.fancydsp.com/public/js/jquery-1.11.1.min.js"></script>
<script src="./jquery.timeSelector.js" charset="utf-8" ></script>
<script>
//$(function(){
var timeselector = $('#timeselector').timeSelector({
defaultData:{
0:[0,1,2,23],
1:[1,2,4],
3:[1,2,3,4,5,6,10,12]
}
});
// 设置
/*
timeselector.set({
0:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],
6:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]
},true)
*/
// 获得
// timeselector.get();
//
//
// 拟人化
/*
$.fn.timeSelector.humanize({
0:[1,2,3,5]
})
*/
// =>>
//
// 【星期天:1:00~3:00,5:00]
//})
</script>
</body>
</html>