var mydate=new Date();
document.write("当前时间:"+mydate+"<br>");
mydate.setTime( mydate.setTime(mydate.getTime() + 2*60 * 60 * 1000));
document.write("推迟二小时时间:" + mydate);
document.write("当前时间:"+mydate+"<br>");
mydate.setTime( mydate.setTime(mydate.getTime() + 2*60 * 60 * 1000));
document.write("推迟二小时时间:" + mydate);
2015-06-18
join,concat,
push,pop,shift,unshift,slice,splice
sort,reverse
toString,toLocalString,toSource,valueOf
push,pop,shift,unshift,slice,splice
sort,reverse
toString,toLocalString,toSource,valueOf
2015-06-18
已采纳回答 / lymo
<...code...>
2.可选参数,从stringObject的startpos位置开始查找substring,如果没有此参数将从stringObject的开始位置查找
这句话有问题,如果没有此参数,将返回-1
这句话有问题,如果没有此参数,将返回-1
2015-06-17
注意:Math 对象是一个固有的对象,无需创建它,直接把 Math 作为对象使用就可以调用其所有属性和方法。这是它与Date,String对象的区别
2015-06-17
document.write(myarr1.reverse().join("-"));是可以的
反过来则不行
反过来则不行
2015-06-17