Date函数toLocaleString方法真机和客户端输出字符串不一致
var time1 = new Date(‘2018-12-26T07:06:16.887Z’).toLocaleString();
console.log(time1);
真机:2018-12-26 15:06:16
客户端: 2018/12/26 下午3:06:16
var time1 = new Date(‘2018-12-26T07:06:16.887Z’).toLocaleString();
console.log(time1);
真机:2018-12-26 15:06:16
客户端: 2018/12/26 下午3:06:16