WebContent/js/rl.js
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
function Calendar(CalendarName, year, month, day) {
this.name = CalendarName;
this.months = new Array("一", "二", "三","四", "五", "六", "七", "八", "九","十", "十一", "十二");
this.daysInMonth = new Array(31, 28, 31, 30, 31, 30, 31, 31,30, 31, 30, 31);
this.days = new Array("一", "二", "三","四", "五", "六", "日");
this.year=-1;
this.month=-1;
this.day = -1;
this.now = new Date(year,month-1,day);
this.todayCount = 0;
//取得天数
Calendar.prototype.getDays = function(month, year) {
if (1 == month) return ((0 == year % 4) && (0 != (year % 100))) ||(0 == year % 400) ? 29 : 28;
else return this.daysInMonth[month];
}
//初始化
Calendar.prototype.init = function () {
this.year = this.now.getFullYear();
this.month = this.now.getMonth();
this.day = this.now.getDate();
this.queryCourse(this.year, this.month + 1);
}
//下一月
Calendar.prototype.nextMonth = function () {
if(this.month+1>11){
this.month=0;
this.year=this.year+1;
}else{
this.month=this.month+1;
}
//查询数据库记录(课程信息)
this.queryCourse(this.year,this.month + 1);
}
//上一月
Calendar.prototype.prevMonth = function () {
if ((this.month - 1) < 0) {
this.month = 11;
this.year = this.year - 1;
} else {
this.month = this.month - 1;
}
//查询数据库记录(课程信息)
this.queryCourse(this.year, this.month + 1);
}
//查询数据库记录(课程信息)
Calendar.prototype.queryCourse = function (year, month) {
this.todayCount = 0;
$.ajax({
type: "POST",
url: "/OnlineTeaching/GetCurriculumData.ashx",
data: "year=" + year + "&month=" + month,
beforeSend: function (XMLHttpRequest) {
//loding;
后面还有 163 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
