摘要: Js 日期比较方法 第一种方式 function compareDate(s1,s2){ return ((new Date(s1.replace(/-/g,"\/")))>(new Date(s2.replace(/-/g,"\/")))); } 第二种方式 var curTime = new Date(); //把字符串格式转化为日期类 var starttime = new Da... 阅读全文
posted @ 2017-08-22 15:32 吼怠 阅读(49287) 评论(2) 推荐(1)