 
						更新时间:2021-05-10 01:37:44
| 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 | //当前日历显示的年份  showYear:2021,  //当前日历显示的月份  showMonth:5,  //当前日历显示的天数  showDays:6,  eventName:"load",  //初始化日历  init: function(signList) {        calUtil.setMonthAndDay();        calUtil.draw(signList);        calUtil.bindEnvent();    }, draw: function(signList) {        //绑定日历            varstr = calUtil.drawCal(calUtil.showYear, calUtil.showMonth, signList);        $("#calendar").html(str);        //绑定日历表头            varcalendarName = calUtil.showYear + "年"+ calUtil.showMonth + "月";        $(".calendar_month_span").html(calendarName);    },    //获取当前选择的年月     setMonthAndDay: function() {        switch(calUtil.eventName) {            case"load":                varcurrent = newDate();                calUtil.showYear = current.getFullYear();                calUtil.showMonth = current.getMonth() + 1;                break;            case"prev":                varnowMonth = $(".calendar_month_span").html().split("年")[1].split("月")[0];                calUtil.showMonth = parseInt(nowMonth) - 1;                if(calUtil.showMonth == 0) {                    calUtil.showMonth = 12;                    calUtil.showYear -= 1;                }                break;            case"next":                varnowMonth = $(".calendar_month_span").html().split("年")[1].split("月")[0];                calUtil.showMonth = parseInt(nowMonth) + 1;                if(calUtil.showMonth == 13) {                    calUtil.showMonth = 1;                    calUtil.showYear += 1;                }                break;        }    },    //ajax获取日历json数据     varsignList = [{        "signDay": "09"    }, {        "signDay": "11"    }, {        "signDay": "12"    }, {        "signDay": "13"    }];calUtil.init(signList); | 
特别申明:
			本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
			本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
			如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com