引用Bootstrap 3 Datepicker插件时出现以下错误:
Uncaught bootstrap-datetimepicker requires Moment.js to bootstrap-datetimepicker.js:49 be loaded first
Uncaught bootstrap-datetimepicker requires Moment.js
解决方案:
在使用bootstrap-datetimepicker相关函数时,先引入moment.js这个文件。
https://github.com/moment/moment/
下载,加入相应的js文件到项目中:
Uncaught bootstrap-datetimepicker requires Moment.js
在BundleConfig.cs类中添加打包压缩:
Uncaught bootstrap-datetimepicker requires Moment.js
实现效果:
Uncaught bootstrap-datetimepicker requires Moment.js

相关文章:

  • 2022-12-23
  • 2021-12-02
  • 2021-11-21
  • 2022-01-08
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-28
  • 2021-04-09
  • 2022-01-08
  • 2021-12-03
相关资源
相似解决方案