标签:
VAR beginDate = "2016-02-06 15:16:12";
VAR endDate= "2016-02-16 15:16:12";
function chankDate(beginDate,endDate){
var oBeginDate = new Date(beginDate.replace(/-/g, "/"));
var oEndDate = new Date(endDate.replace(/-/g, "/"));
if(oBeginDate>oEndDate){
return false;
}
return true;
}
标签:
原文地址:http://www.cnblogs.com/huyuran/p/5784979.html