const date1 = new Date(fieldsValue.examStartTime);
const date2 = new Date(fieldsValue.examEndTime);
const s1 = date1.getTime();
const s2 = date2.getTime();
const Minute2 = Number((s2 - s1) / 60000);
const Minute1 = Number(fieldsValue.duration)
原文地址:https://www.cnblogs.com/chen-cheng/p/10399989.html
时间: 2024-10-09 18:48:25