如何将日期与日期格式为 dd-mm-yyyy 的今天日期进行比较
var sdate = document.getElementById('datepicker-example2').value;
if (Date.parse(document.getElementById("datepicker-example2").value) < Date.parse(dateToday.getDate() + "/" + dateToday.getmonth() + "/" + dateToday.getYear())) {
alert("dsd");
}