时间原先格式是这样的
this.currentDate = new Date(year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds).getTime();
改正
this.currentDate = new Date(year + "/" + month + "/" + day + " " + hours + ":" + minutes + ":" + seconds).getTime();
在ios对时间格式有要求,符号隔开必须是“/” moment是不影响的
如果你在开发的时候ios时间显示不正确,在ios打印时间,查看时间是否正常,然后寻求解决办法