var format = function(time, format){ var t = new Date(time); var tf = function(i){return (i < 10 ? '0' : '') + i}; return format.replace(/yyyy|MM|dd|HH|mm|ss/g, function(a){ switch(a){ case 'yyyy': return tf(t.getFullYear()); break; case 'MM': return…
$("#start_date").datebox({ onSelect: function (beginDate) { $('#end_date').datebox().datebox('calendar').calendar({ validator: function (endDate) { var date = new Date(); return beginDate <= endDate; } }); } }); //获取日期框的值用js代码 $('#start_date'…