范围过滤组件绑定日期,想显示默认一个月的范围,按照以下脚本不起作用,求操作?
var myDate = new Date();
var years = myDate.getFullYear();
var months = myDate.getMonth();
var day1=parseInt(substring(formatDate(myDate,"yyyyMMdd"), 7,8))-30
var day2 = myDate.getDate();
日期过滤2.firstDates = ["t"+years+"-"+months+"-"+day1];
日期过滤2.secondDates = ["t"+years+"-"+months+"-"+day2]
|