function compareStrTime( timeStart , timeEnd ) {
var dateA = new Date("2018/10/11 " + timeStart);
var dateB = new Date("2018/10/11 " + timeEnd);
if(isNaN(dateA) || isNaN(dateB))
return null;
if(dateA > dateB) {
return 1;
}
if(dateA < dateB) {
return -1;
}
return 0;
};
compareStrTime('16:11','15:03') // 1