About encountering some pits compatible with Safari

Regarding the date input box part of the recently developed adsb data visualization page, when I tested it on Safari, I found that Safari could not recognize the date format such as "2017-09-12". By querying the data, we learned that Safari only supports "2017/09/ 12" format.
var date = new Date(Date.parse(expireDate.replace(/-/g, "/")));  

Avoid using dates in yyyy-MM-dd format (recognized by new Date() in FF and Chrome).

-------------------------------------------------- -----------------------
When debugging the carousel function, it is found that the left and right movement and current position point functions available on ff and chrome are not available on Safari , after debugging found:
1. Safari defaults to auto for the left of the full-screen width div, and 0px for the left of ff and chrome
2. Safari returns hexadecimal color for svg fill, while ff and chrome return rgb by default ( 255, 255, 255) color

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326620520&siteId=291194637