疯子姓张

一定要站在巨人的肩膀上去学习。

导航

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

 

<td>
<input id="happenTimes" name="happenTimes" class="easyui-datebox" data-options="width: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;
}
});

posted on 2017-11-21 11:24  菠萝奶油饭  阅读(275)  评论(0编辑  收藏  举报