最佳答案
我得到以下错误。我不能找出我到底哪里出错了。有人能帮我解决这个问题吗
密码
function() {
this.devices.forEach(device => {
let lastConnect = device.lastConnection.split('+');
lastConnect = lastConnect[0] + 'Z';
let diff = Math.abs(new Date() - new Date(lastConnect));//getting error here
}