javascript 当前日期加(天、周、月、年)

时间:2009-08-09    点击:89   
复制代码 代码如下:

//create the date
var myDate = new Date();

//add a day to the date
myDate.setDate(myDate.getDate() + 1);

//add a week
myDate.setDate(myDate.getDate() + 7);

//add a month
myDate.setMonth(myDate.getMonth() + 1);

//add a year
myDate.setYear(myDate.getYear() + 1);
Javascript 继承机制的实现
Javascript 继承实现例子
JQuery jsonp 使用示例代码
JavaScript 权威指南(第四版) 读书笔记
Javascript+XMLHttpRequest+asp.net无刷新读取数据库数据
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved