首页 > IT职业 > IT职场 > 点击日历显示日期jquery
var today = new Date();
var selectedDay = today.getDate();
var selectMonth = today.getMonth()+1
function dateClick(_this){
selectedDay = $(_this).html();
refreshActivityList();
}
function refreshActivityList() {
$('.day').html(selectedDay);
$('.month').html(selectMonth+'月');
}
2017年10月
S
M
T
W
T
F
S
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
11 10月
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2310/viewspace-2799523/ ,如需转载,请注明出处,否则将追究法律责任。