npm uninstall -g @angular/cli
npm cache clean
npm install -g @angular/cli@latest
我有一个2d数组for (var i = 0; i < sipDates.length; i++) {
var datepickerselector = "#" + sipDates[i][0] + "_txt_startdate";
alert(datepickerselector);
$(datepickerselector).datepicker({
format: "dd/mm/yyyy",
startDate: "today",
autoclose: true,
beforeShowDay: function(date) {
//var dt_ddmmyyyy = date.getDate() + '/' + (date.getMonth() + 1) + '/' + date.getFullYear();
var dt_ddmmyyyy = date.getDate().toString();
if (sipDates.length > 0) {
if (sipDates[i][1].indexOf(dt_ddmmyyyy) != -1) {
return {
tooltip: 'date',
classes: 'active'
};
} else {
return false;
}
}
}
});
}
由客户ID和日期(日)组成,将在datepicker中启用客户ID,但是当我选择任何启用的日期表单时,它会抛出错误
下面是未捕获的TypeError:无法读取属性&#39; 1&#39;未定义的
sipDate
里面的图片
https://nodejs.org/en/download/