function DateAdd(s,year){
if(!s) return "";
var aDate = (s).split("-");
var dDate = ( parseInt(aDate[0]) + parseInt(year)) + "-" + (aDate[1]-1) + "-" + (aDate[2]);
return dDate;
}
有时间优化一下
function DateAdd(s,year){
if(!s) return "";
var aDate = (s).split("-");
var dDate = ( parseInt(aDate[0]) + parseInt(year)) + "-" + (aDate[1]-1) + "-" + (aDate[2]);
return dDate;
}
有时间优化一下