level 8
$('#dd').datebox().datebox('calendar').calendar({
validator: function(date){
var now = new Date();
var d1 = new Date(now.getFullYear(), now.getMonth(), now.getDate());
var d2 = new Date(now.getFullYear(), now.getMonth(), now.getDate()+10);
return d1<=date && date<=d2;
}
});
2017年08月18日 13点08分
7
datebox使用了calendar。所以,要先用calendar方法来获取到calendar对象。再用calendar属性“validator”来定义。上面代码就如你的贴图一样。只是,你需要在datagrid的行编辑中使用,而你是直接写成了datebox。并没有启作用
2017年08月18日 13点08分
level 2
不是有点击时间吗,点的时候判断一下,如果大于今天,就提示一下,
2018年12月21日 06点12分
9