发生“未定义FlatpickrInstance”

时间:2019-12-07 03:07:37

标签: jquery css angularjs datepicker flatpickr

我正在尝试使用有角度的flatpickr。 但是,出现以下错误: Settings.Default.SavedCharacters = foo;

这是我的目录树,如下所示:

enter image description here

index.html

FlatpickrInstance is not defined

calculator.js

<script src="client/calculator.js"></script>
<script src="../client/node_modules/angular-flatpickr/dist/ng-flatpickr.js"></script>
...
<!--div ng-repeat="date in dates"-->
  <input
   ng-flatpickr 
   fp-opts="dateOpts"
   fp-on-setup="datePostSetup(fpItem)"
   ng-model="date.selectedDateObj"
   data-no-calendar="true"
   data-enabletime="true">
<!--/div-->

但是,它显示了错误

  

FlatpickrInstance未定义。

0 个答案:

没有答案