在这里 $(function(){
Date.prototype.format=function(){var s ='';
s +=this.getFullYear()+'-';// 获取年份。if((this.getMonth()+1)>=10){// 获取月份。
s +=(this.getMonth()+1)+"-";}else{
s +="0"+(this.getMonth()+1)+"-";}if(this.getDate()>=10){// 获取日。
s +=this.getDate();}else{
s +="0"+this.getDate();}return(s);// 返回日期。};})functiongetAll(begin, end){var ab = begin.split("-");var ae = end.split("-");var db =newDate();
db.setUTCFullYear(ab[0], ab[1]-1, ab[2]);var de =newDate();
de.setUTCFullYear(ae[0], ae[1]-1, ae[2]);var unixDb = db.getTime();var unixDe = de.getTime();var str ="";for(var k = unixDb +24*60*60*1000; k < unixDe;){
str +=(newDate(parseInt(k))).format()+",";
k = k +24*60*60*1000;}return str;}插入代码片