uncaught exception: bootstrap-datetimepicker requires Moment.js to be loaded first
2020-06-28 04:51
459 查看
bootstrap-datetimepicker时间组件无法加载。
今天在做公司项目的时候,使用bootbootstrap-datetimepicker时间组件一直报错uncaught exception: bootstrap-datetimepicker requires Moment.js to be loaded first
用bootstrap-datetimepicker做的时间组件界面如图:
html引入bootbootstrap-datetimepicker.min.js和moment.js:
点击日期选择器,一直弹不出时间选择界面,打开浏览器调试器报错:
经过检查才发现bootbootstrap-datetimepicker需要先加载moment,所以引入moment.js,应该放在bootbootstrap-datetimepicker.js前面:
成功解决:
相关文章推荐
- Uncaught bootstrap-datetimepicker requires Moment.js
- Uncaught bootstrap-datetimepicker requires Moment.js
- bootstrap-datetimepicker.js的兼容性问题(IE10兼容模式无法弹出窗口)
- AssertionError: HybridBlock requires the first argument to forward be either Symbol or NDArray, but
- 【JS】一款好用的JS日历选择插件【bootstrap-datetimepicker.js】
- 基于bootstrap-datetimepicker.js不支持IE8的快速解决方法
- 关于bootstrap-datetimepicker.js不支持IE8的解决办法
- DateTimePicker 控件出现 "You must be in ShowCheckbox mode to set to this date" 的错误
- bootstrap-datetimepicker.min.js日期插件使用记录
- bootstrap-datetimepicker.js插件
- bootstrap-datetimepicker.js学习 - 无码帝
- bootstrap-datetimepicker.js与IE8的兼容问题
- bootstrap3 datepicker 和moment.js的汉化
- toBeContinued h5,bootstrap springboot pythonflask nodejs
- using JS to control two select(html),the data can be loaded from database and XML,and show in the select
- bootstrap-datetimepicker.js 设置开始时间的Bug。
- bootstrap时间控件随滚动条一起移动bootstrap-datetimepicker.js
- bootstrap之datetimepicker使用配置
- Bootstrap时间选择器datetimepicker和daterangepicker使用实例解析
- AFNetworking 提示"The resource could not be loaded because the App Transport Security policy requires the use of a secure connection" 解决办法