1.Date.parse()函数兼容性问题:

  IE   Chrome Firefox
Date.parse("07-17-2019") 1563292800000 1563292800000 NaN
Date.parse("17-07-2019") 1588780800000 NaN   NaN
Date.parse("07/17/2019") 1563292800000 1563292800000 1563292800000
Date.parse("17/07/2019") 1588780800000 NaN NaN

   参考上图: Date.parse()函数参数格式必须是   月/日/年 以“/”分隔开

 

相关文章:

  • 2021-07-07
  • 2021-09-13
  • 2021-12-20
  • 2021-10-05
  • 2021-07-22
  • 2021-06-08
  • 2021-09-22
  • 2021-12-21
猜你喜欢
  • 2021-12-16
  • 2021-12-04
  • 2021-12-02
  • 2021-11-19
  • 2022-01-11
  • 2021-12-03
  • 2021-07-26
相关资源
相似解决方案