取两段日期之间的所有天的日期值
<script><br />d1 =new Date(2009,11,1)<br />d2 =new Date(2010,2,31)<br />s = []<br />days = (Date.parse(d2)-Date.parse(d1))/1000/60/60/24<br />for(i =0;i<=days;i++)<br />{<br />d =new Date(2009,11,1+i)<br />d = d.getFullYear() +"-"+ (d.getMont
原创
2011-01-18 10:07:00 ·
404 阅读 ·
0 评论