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; }ide
有時間優化一下優化