The page uses dateTimePicker to get the data type "12:12:12" If you enter "11:11:11" and the time difference between the two is as follows:
var a="12:49:00",b="14:49:00";s=a.split(":");e=b.split(":");var daya = new Date();var dayb = new Date();daya.setHours(s[0]);dayb.setHours(e[0]);daya.setMinutes(s[1]);dayb.setMinutes(e[1]);alert("b is more than a: "+(dayb-daya)/1000/60+"minutes")The simple implementation method of calculating time difference in js time comparison is the entire content shared by the editor. I hope it can give you a reference and I hope you can support Wulin.com more.