赞
踩
function tab(date1,date2){
var oDate1 = new Date(date1);
var oDate2 = new Date(date2);
if(oDate1.getTime() > oDate2.getTime()){
toaster.pop('warning','开始时间不能大于结束时间');
return false;
}else{
return true;
}
}
if(!tab($scope.startDate,$scope.endDate)){
return ;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。