js获取系统当前日期和时间,并与另一个时间(如某一时间2015-11-03 16:16:13 )比较大小。var comp = function(date) {var now = new Datevar d = new Date(date)if (now >d) {alert("之前的日期")} else if2023-04-23JavaScript260