07 2018 档案
摘要:Date.prototype.Format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "H+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+...
阅读全文
摘要:1 function theWeek(now) { 2 var totalDays = 0; 3 years = now.getYear() 4 if (years < 1000) 5 years += 1900 6 var days = new Array(12); 7 days[0] = 31; 8 days[2...
阅读全文
摘要:function getDaysInOneMonth(year, month){ var year=2018; //表示需要查找的年份 var month=8;//表示需要查找的月份 var curMonthDays=new Date(year,month,0).getDate(); //0表示3月的第0天,上月的最后一天,月份从0开始记数 ...
阅读全文
摘要:function oneWeekDate(date){var weekDate=new Array();var res = date.getDay();var time = date.getTime();if(res == 0){weekDate[0] = new Date(time-6*24*60
阅读全文