function getDate(datestr){
var temp = datestr.split("-");
var date = new Date(temp,temp,temp);
return date;
}
var start = "2012-3-25";
var end = "2012-4-3";
var startTime = getDate(start);
var endTime = getDate(end);
var arr=
while((endTime.getTime()-startTime.getTime())>=0){
var year = startTime.getFullYear();
var month = startTime.getMonth().toString().length==1?"0"+startTime.getMonth().toString():startTime.getMonth();
var day = startTime.getDate().toString().length==1?"0"+startTime.getDate():startTime.getDate();
startTime.setDate(startTime.getDate()+1)
var dd=year+"-"+month+"-"+day;
arr.push(dd)
//contentPane.setCellValue('E6',null,dd)
;
}
//var str=arr.toString()
contentPane.setCellValue('E6',null,arr)61153
如何在让结果分行显示,别挤在同一单元格里