objDate1 = new Date();
objDate2 = new Date();
arrDate = $("#开始日期").val().split("-");
objDate1.setFullYear(arrDate[0], arrDate[1], arrDate[2]);
arrDate = $("#结束日期").val().split("-");
objDate2.setFullYear(arrDate[0], arrDate[1], arrDate[2]);
intDays = parseInt(Math.abs(objDate1 - objDate2) / 1000 / 60 / 60 / 24);
$("#天数").val(intDays + 1);
}