【发布时间】:2023-03-22 05:35:01
【问题描述】:
我想比较日期和时间戳。这里 dates 是日期数组, dateTimestamp 是时间戳数组,我想要的是如果日期匹配则增加计数,否则不会。谁能帮帮我。 我尝试的是-
this.dates.forEach(e => {
dateTimestamp.forEach(f => {
if(e == f) {
console.log('here', c++);
} else {
console.log('hyyy', c);
}
});
});
【问题讨论】:
-
样本数据对我们很有帮助
-
@StepUp 很抱歉给您带来不便。我添加了数据截图。
-
@ANUSHKAGARG 最好将您的数据显示为文本,而不是图像:)