摘要: function datePad(num, n){ if( ( num + "" ).length >= n ) return num; //一位数 return arguments.callee( "0" + num, n ); //两位数 } Common.type.isDate: functi 阅读全文
posted @ 2017-10-11 17:29 Cryst- 阅读(6546) 评论(0) 推荐(0) 编辑
摘要: function compareStrTime( timeStart , timeEnd ) { var dateA = new Date("2018/10/11 " + timeStart); var dateB = new Date("2018/10/11 " + timeEnd); if(isNaN(dateA) || isNaN(dateB)) ... 阅读全文
posted @ 2017-10-11 16:36 Cryst- 阅读(3190) 评论(0) 推荐(0) 编辑