easyui datebox 不以选择未来时间
//统计日期符初值 var oldTime = (new Date()).getTime(); var now = new Date(oldTime).Format("yyyy-MM-dd"); $('#txtStartDate').datebox({ value: now}).datebox('calendar').calendar({ validator: function (date) { var now = new Date(); var d1 = new Date(now.getFullYear(), now.getMonth(), now.getDate()); return d1 >= date; } });