摘要:
之前写过一个日历控件,现在回头看了一下代码,简直就是一坨屎今天抽个时间,用事件代理模式重写了一下代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1Date.prototype.Add=function(){2if(arguments[0]!==undefined)3this.setTime(this.getTime()+(60*60*24*1000*parseInt(arguments[0])));4returnthis;5};6Date.pr 阅读全文