Byme
function tab(date1,date2){
    var oDate1 = new Date(date1);
    var oDate2 = new Date(date2);
    if(oDate1.getTime() > oDate2.getTime()){
        console.log(\'第一个大\');
    } else {
        console.log(\'第二个大\');
    }
}
tab(\'2015-10-10\',\'2015-10-11\');

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-07-07
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-12
  • 2022-12-23
  • 2021-11-01
  • 2022-12-23
相关资源
相似解决方案