document.write嵌套
function max(x,y)
{ ?
? ? if(x>y)
? ? document.write(x);
? ? else if(X<y)
? ? document.write(y);
? ? else
? ? ?document.write("兩者相等,沒有最大數(shù)");
}
? document.write(" 5 和 4 的較大值是:"+max(5,4)+"<br>");
?document.write里面不能用?document.write?
2015-12-17
可以寫進去 ? 然而輸出的值跟你想的不同