目前,在我的JS中,我静态地定义了要将我的datepicker脚本与哪些输入ID相关联。如下所示:但是,为了使其动态化,我将其重构到一个for循环中,以便对于需要datepicker的多个字段,我可以在该循环中调用它们。dateArray[y] = "datePicker" + i;
for (i = 0; i < dateArray.length
exception: $(...).datepicker is not a function TypeError: $(...).datepicker is not a function at process (https://localhost:44346/lib/jquery/dist/jquery.js:3602:12) undefinedjQuery.