easyui-datebox 只能获取当前日期以前的日期

<td>
<input id="happenTimes" name="happenTimes" class="easyui-datebox" data-options="170,required:true" missingMessage="发生时间不能为空" value="" />
<span style="font-size:12px;color:red">*</span>
</td>

$('#happenTimes').datebox('calendar').calendar({
validator : function(date){
var now = new Date();
var d1 = new Date(now.getFullYear(),now.getMonth(),now.getDate());
return date <= d1;
}
});

原文地址:https://www.cnblogs.com/haiqin/p/7872315.html