extjs 动态设定 DateField 最大值 最小值
yxrqDate.minValue = new Date();
yxrqDate.maxValue = new Date(9000,1,1);
yxrqDate.validate(); //var picker_flag = true; //while(picker_flag) { // if(yxrqDate.menu && yxrqDate.menu.picker){ // picker_flag = false; yxrqDate.menu.picker.minDate = new Date(); yxrqDate.menu.picker.maxDate = new Date(9000,1,1);
var ad = yxrqDate.menu.picker.activeDate; yxrqDate.menu.picker.activeDate = null; yxrqDate.menu.picker.update(ad); // } //}