ios手机上时间格式化的问题 用户9993576850245 2021-03-17 312 阅读1分钟 在ios手机上使用new Date()格式化时间时,时间格式不能是'2021-03-17 12:00:00' 带'-'的,必须先进行转换,如 time = ('2021-03-17 12:00:00').replace(/-/g,'/'); time= "2021/03/17 12:00:00"