var myarr1= ["我","爱","你"];
document.write(myarr1.reverse().concat("吗","?").join(""));
document.write(myarr1.reverse().concat("吗","?").join(""));
2015-06-18
var myarr1= ["我","爱","你"];
document.write(myarr1.reverse().join(""));
document.write(myarr1.reverse().join(""));
2015-06-18
var num1=parseFloat(document.getElementById("txt1").value);
var num2=parseFloat(document.getElementById("txt2").value);
switch(flag)
{
case "+":num1+=num2;break;
case '-':num1-=num2;break;
case '*':num1*=num2;break;
case '/':num1/=num2;break;
var num2=parseFloat(document.getElementById("txt2").value);
switch(flag)
{
case "+":num1+=num2;break;
case '-':num1-=num2;break;
case '*':num1*=num2;break;
case '/':num1/=num2;break;
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