s1 = "2009-8-19"; s2 = "2009-8-22"; d1 = new Date(s1.replace(/-/g,"/")) d2 = new Date(s2.replace(/-/g,"/")) dif = (d2 -d1)/(24*60*60*1000); alert(dif); if(dif>7){}
87,910
社区成员
224,616
社区内容
加载中
试试用AI创作助手写篇文章吧