Date.parse和new Date(str)的兼容性问题

今天遇到一个怪异的BUG, 一路跟踪到isNaN(Date.parse(str))这句上,这里的意图是探测str是不是合法的日期字符串。根据MDN的定义:javascript The Date.parse() method parses a string representation of a date, and returns the number of milliseconds since J
相关文章
相关标签/搜索