js compare the size of the string time

var date1 = new Date("2019-08-19");
var date2 = new Date("2019-08-19");
IF (date1 <DATE2) { 
layer.msg ( 'fill initial synchronization date "2019-08-19" a later date', {Time: 1500});
return to false;
}

Guess you like

Origin www.cnblogs.com/aj407blogs/p/11712951.html