Bootstap datetimepicker报错TypeError: intermediate value

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

有个包含date-picker的页面,页面在chrome等浏览器能正常点击等操作,且没有报错;

 

而在火狐浏览器不能点击,console提示错误:Bootstap datetimepicker报错TypeError: intermediate value

解决方案:在boostrap-datepicker.min.js 中找到以下一行:

this.defaultTimeZone=(new Date()).toString().split("(")[1].slice(0,-1);

改为:this.defaultTimeZone='GMT '+(new Date()).getTimezoneOffset()/60

 

参考自博客:http://blog.chinaunix.net/uid-20332519-id-5733546.html

转载于:https://my.oschina.net/wtzheng/blog/813760

你可能感兴趣的:(Bootstap datetimepicker报错TypeError: intermediate value)