//保存 function RetakeOpenControl_Save() { var startDate = $("#StartDate").val(); var endDate = $("#EndDate").val(); startDate = startDate.replace(/-/g, "/"); endDate = endDate.replace(/-/g, "/"); stime = new Date(startDate); etime = new Date(endDate); if (stime >= etime) { $.messager.alert("系统提示", "开始时间不能大于等于结束时间,请重新输入。"); return; } $(document.forms[0]).submit(); }