alert(EDate< new Date().format("yyyy-MM-dd hh:mm:ss"));

 1 Date.prototype.format = function(format){ 
 2 var o = { 
 3 "M+" : this.getMonth()+1, //month 
 4 "d+" : this.getDate(), //day 
 5 "h+" : this.getHours(), //hour 
 6 "m+" : this.getMinutes(), //minute 
 7 "s+" : this.getSeconds(), //second 
 8 "q+" : Math.floor((this.getMonth()+3)/3), //quarter 
 9 "S" : this.getMilliseconds() //millisecond 
10 } 
11 
12 if(/(y+)/.test(format)) { 
13 format = format.replace(RegExp.$1, (this.getFullYear()+"").substr(4 - RegExp.$1.length)); 
14 } 
15 
16 for(var k in o) { 
17 if(new RegExp("("+ k +")").test(format)) { 
18 format = format.replace(RegExp.$1, RegExp.$1.length==1 ? o[k] : ("00"+ o[k]).substr((""+ o[k]).length)); 
19 } 
20 } 
21 return format; 
22 } 
View Code

优质内容筛选与推荐>>
1、Magic eDeveloperV9中发送邮件
2、安装scala
3、prototype和__proto__
4、Linux下的多线程编程(简单入门)
5、<转>Socket编程——基础介绍


长按二维码向我转账

受苹果公司新规定影响,微信 iOS 版的赞赏功能被关闭,可通过二维码转账支持公众号。

    阅读
    好看
    已推荐到看一看
    你的朋友可以在“发现”-“看一看”看到你认为好看的文章。
    已取消,“好看”想法已同步删除
    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号





    联系我们

    欢迎来到TinyMind。

    关于TinyMind的内容或商务合作、网站建议,举报不良信息等均可联系我们。

    TinyMind客服邮箱:support@tinymind.net.cn