0
如何獲得從當前時間到小時開始日期的小時差異?獲取時差(小時)
var diff = new Date("2016-02-26 17:21:29") - new Date();
diff_time = diff/(60 * 60 * 1000);
//alert(diff_time);
if (diff_time < 24) {
alert("Please select the start date greater than 24 hours");
}