
本文教程操作环境:windows7系统、jquery3.2.1版本,DELL G3电脑。1、使用条件语句if判断选定日期是否大于当前日期
varmyDate=newDate();
varnow=myDate.valueOf();
vartime=newDate(value).valueOf();
if(now>time){
returntrue;
}else{
returnfalse;
}
2、使用调用时间比较判断选定日期是否大于当前日期
varret=diffDate("pauseDate");
if(ret==1){
alert("申请挂起结束时间必须在当前时间之后!");
document.getElementById("pauseDate").value="";
document.getElementById('pauseDate').focus();
return;
}原文来自:https://www.py.cn © 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END



















































暂无评论内容