文件夹下的html,统一管理

  ,& lt; ! DOCTYPE  html  PUBLIC “-//W3C//DTD  XHTML  1.0,过渡//EN ", " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "比;   & lt; html  xmlns=" http://www.w3.org/1999/xhtml "比;   & lt; head>   & lt; meta  http-equiv=" - type ",内容=" text/html;, charset=gb2312 ",/比;   & lt; title>文件管理& lt;/title>   & lt;/head>   & lt; body>   & lt; script  type=" text/javascript祝辞   var  $,=, function  (id), {   ,,,return “字符串”,==,typeof  id  ?, . getelementbyid (id),:,身份证;   };      var  Class =, {   创造才能:函数(),{   ,,,return 函数(),{   ,,,,,this.initialize.apply(,,参数);   ,,,}   ,,}   }      时间=Object.extend 函数(目的地,源),{   ,,,for  (var  property 源拷贝),{   ,,,,,,,目的地[属性],=,源(财产);   ,,,}   ,,,return 目的地;   }      var  Calendar =, Class.create ();   Calendar.prototype =, {   初始化才能:函数(容器,选项),{   ,,,this.Container =,(容器);美元//容器(表结构)   ,,,this.Days =,[];//日期对象列表   ,,   ,,,this.SetOptions(选项);   ,,   ,,,this.Year =, this.options.Year;   ,,,this.Month =, this.options.Month;   ,,,this.SelectDay =, this.options.SelectDay  ?, new 日期(this.options.SelectDay),:,空;   ,,,this.onSelectDay =, this.options.onSelectDay;   ,,,this.onToday =, this.options.onToday;   ,,,this.onFinish =, this.options.onFinish;,,,   ,,   ,,,this.Draw ();   ,,},//才能设置默认属性   setoption才能:功能(选项),{   ,,,this.options =,{//默认值   ,,,,,,,年,,,,,,,,,,,,,new 日期().getFullYear()//显示年   ,,,,,,,月:,,,,,,,,,,,,new 日期().getMonth(), +, 1//显示月   ,,,,,,,SelectDay:,,,,,,,, null,//选择日期   ,,,,,,,onSelectDay:,,,,的函数(){},//在选择日期触发   ,,,,,,,onToday:,,,,,,,,的函数(){},//在当天日期触发   ,,,,,,,onFinish:,,,,,,,,的函数(){}//日历画完后触发   ,,,};   ,,,Object.extend (this.options, options  | |, {});   ,,},//才能上一个月   ,,PreMonth:函数(),{   ,,,//先取得上一个月的日期对象   ,,,var  d =, new 日期(this.Year, this.Month 作用;2,1);   ,,,//再设置属性   ,,,this.Year =, d.getFullYear ();   ,,,this.Month =, d.getMonth (), +, 1;   ,,,//重新画日历   ,,,this.Draw ();   ,,},//下才能一个月   ,,NextMonth:函数(),{   ,,,var  d =, new 日期(this.Year, this.Month,, 1);   ,,,this.Year =, d.getFullYear ();   ,,,this.Month =, d.getMonth (), +, 1;   ,,,this.Draw ();   ,,},//画才能日历   ,,画:函数(),{   ,,,//用来保存日期列表   ,,,var  arr =, [];   ,,,//用当月第一天在一周中的日期值作为当月离第一天的天数   ,,,(var 小姐:=,1,firstDay =, new 日期(this.Year, this.Month 安康,1,1).getDay();,小姐:& lt;=, firstDay;,我+ +){,arr.push(“和,”);,}   ,,,//用当月最后一天在一个月中的日期值作为当月的天数   ,,,(var 小姐:=,1,monthDay =, new 日期(this.Year, this.Month,, 0) .getDate();,小姐:& lt;=, monthDay;,我+ +){,arr.push (i);,}   ,,   ,,,var  frag =, document.createDocumentFragment ();   ,,   ,,,this.Days =, [];   ,,   ,,,,(arr.length 祝辞,0){   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null   null

文件夹下的html,统一管理