使用Moment.js计算时间差可以使用diff()方法。该方法接受一个时间参数,并返回两个Moment实例之间的时间差,以毫秒为单位。 例如: var moment1 = moment("2022-10-10 ...
確定! 回上一頁