js判断选择时间不能小于当前时间的示例代码

ppspwh 20 0 PDF 2020-12-13 06:12:30

代码如下: var controldate; function checkDate(){ controldate= document.getElementById(“sendDate”).value; if(controldate==””){ alert(‘日期不能为空’); return false; }else{ var day = new Date(); var Year = 0; var Month = 0; var Day = 0; var CurrentDate = “”; //初始化时间 Year = day.getFullYear(); Month = day.

用户评论
请输入评论内容
评分:
暂无评论