calendar icon indicating copy to clipboard operation
calendar copied to clipboard

请问大神,怎么计算住了几晚啊

Open yzs1228 opened this issue 5 years ago • 1 comments

请问大神,怎么计算住了几晚啊

yzs1228 avatar Apr 24 '19 12:04 yzs1228

let time_diff = new Date(showOutDate).getTime()-new Date(showInDate).getTime(); let totalDays = Math.floor(time_diff / (24 * 3600 * 1000));

xujia8k avatar Dec 05 '19 02:12 xujia8k