javascript备忘录。
(1)设置特定日期:
var myDate = new Date(2013, 1, 10);
(2)在指定日期上加减:
var milliSeconds = 3000; // 3秒
var myDate2 = new Date(); // 返回当前时间
myDate2.setTime(myDate2.getTime()+milliSeconds);
javascript备忘录。
(1)设置特定日期:
var myDate = new Date(2013, 1, 10);
(2)在指定日期上加减:
var milliSeconds = 3000; // 3秒
var myDate2 = new Date(); // 返回当前时间
myDate2.setTime(myDate2.getTime()+milliSeconds);