日期过滤组件范围模式左侧日期默认显示当前时间倒退7天,右侧默认显示今天。
var myDate = new Date();
var years = myDate.getFullYear();
var months = myDate.getMonth();
var day1=parseInt(substring(formatDate(myDate,"yyyy-MM-dd"), 8,10))-7
var day2 = myDate.getDate();
日期过滤2.firstDates = ["t"+years+"-"+months+"-"+day1];
日期过滤2.secondDates = ["t"+years+"-"+months+"-"+day2];
|