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