//IE、safari
new Date('2019-06-01 00:00:00') //Invalid Date
//如果IE和safari要能正常识别需要将-替换为/
new Date('2019/06/01 00:00:00') //Sat Jun 01 2019 00:00:00 GMT+0800 (中国标准时间)
//chrome 、firefox
new Date('2019-06-01 00:00:00') //Sat Jun 01 2019 00:00:00 GMT+0800 (中国标准时间)
写代码的时候,经常会碰到一些浏览器兼容的问题,没有规律,只能碰到的时候记录一点。大家以后如果有碰到浏览器的兼容问题也可以提在这里