我正在开发一个 ASP 应用程序,但在 IE 8 中出现此错误:
消息:对象不支持此属性或方法
线路:216
字符:8
代码:0
这是我的代码:
$(function() {
Today = new Date;
Annee = Today.getFullYear() - 18 ; //this is a Line 216
PlageMois = Today.getMonth();
Jour = Today.getDate() ;
//maxDate: new Date(new Date.getFullYear(), 1-1, 1),
$( "#datepicker_Majeur" ).datepicker({
monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug','Sep', 'Oct', 'Nov', 'Dec'],
dayNamesMin: ['Su','Mo','Tu','We','Th','Fr','Sa'],
dateFormat: 'mm/dd/yy',
//maxDate: new Date(1993, 1-1, 1),
maxDate: new Date(Annee, PlageMois, Jour),
showOn: "button",
buttonImage: "/images/img-calendar.gif",
buttonImageOnly: true
});
});