new Date时间格式,是横线的格式还是斜杠的格式,解决ios和安卓兼容

new Date(时间.replace(/-/g, "/")).getTime() / 1000,

转换下格式,在时间后面加上一个replace(/-/g, "/")

你可能感兴趣的:(前端,前端)