日期:2014-05-16  浏览次数:20390 次

javascript给日期加一天
javaScript给日期加一天
<script language="javascript">
    function test(){
                var mm="2011-10-10";
	var arr = mm.split("-");
	var newdt = new Date(Number(arr[0]),Number(arr[1])-1,Number(arr[2])+1);
	repnewdt = newdt.getFullYear() + "-" +   (newdt.getMonth()+1) + "-" + newdt.getDate();
	alert(repnewdt);
   }
   test();
</script>

?