可以拿到当前时间以及选择的时间,想要的效果是两个数据进行比较,或者进行相减
收起
console.log(new Date(time).getTime() > new Date(times).getTime())
报告相同问题?