JS 获取日期相差天数
var s1 = '2012-05-12'; s1 = new Date(s1.replace(/-/g, "/")); s2 = new Date(); var days = s2.getT ...
var s1 = '2012-05-12'; s1 = new Date(s1.replace(/-/g, "/")); s2 = new Date(); var days = s2.getT ...