Bootstrap Datetimepicker 兼容IE8
bootstrap datetimepicker插件在IE8下显示无效,报错提示bootstrap-datetimepicker.js脚本不支持indexOf()方法
解决方案:在bootstrap-datetimepicker.js/bootstrap-datetimepicker.min.js最前面添加以下代码:
1 | if (!Array.prototype.indexOf) |
Bootstrap Datetimepicker 兼容IE8
https://ldsun.com/2015/08/19/Bootstrap-Datetimepicker-兼容IE8/