safari兼容时间格式

前提:

使用iview的DatePicker组件,保存时间后台接收时间戳

问题:

safari中不支持2018-02-13这种格式转为时间戳会显示NaN

解决:

new Date('2018/02/13').getTime()

将-转化为/

原文地址:https://www.cnblogs.com/victory820/p/8514372.html