07 2011 档案

摘要: /*@author:slchen@exemple:varemail="slchen@xxxxx.com";alert($v.IsEmail(email));*/var$v=(function(){Function.prototype.method=function(name,fn){this.prototype[name]=fn;};varValidator=function(){};//是否邮件Validator.method('IsEmail',function(obj){varre=newRegExp(ValidatorRegex.Email);ret阅读全文
posted @ 2011-07-22 19:16 ShuLin 阅读(79) | 评论 (0) 编辑
摘要: /*similarto.NET'sDateTimeclass--slchen*/functionDateTime(){this.year=0;this.month=0;this.day=0;this.hour=0;this.minute=0;this.second=0;this.millisecond=0;switch(arguments.length){case0:vard=newDate();this.year=d.getFullYear();this.month=d.getMonth()+1;this.day=d.getDate();this.hour=d.getHours();阅读全文
posted @ 2011-07-22 19:02 ShuLin 阅读(196) | 评论 (0) 编辑