JS中的时间比较

来源:互联网 发布:高仿篮球鞋淘宝店铺 编辑:程序博客网 时间:2024/05/21 11:28
var start = new Date($("#exhibitionStart").val());
var end = new Date($("#exhibitionEnd").val());
if (start>end){
Utils.Notice.alert("结束日期不能早于开始日期");
return;

}


Js获取当前月份 

var date=new Date;
var yue = date.getMonth()+1;


原创粉丝点击