大佬 為什么這段代碼什么都不顯示呢?
function coms(a,b)
{
if(a>b)
{
return a;
}
else if(a<b)
{
return b;
}
else
{
return"兩個數(shù)相等"
}
}
document.write("8和7相比誰大"+coms(8,7)+"<br />">;
document.write("5和7相比誰大"+coms(5,7)+"<br />");
document.write("10和10"+coms(10,10));
function coms(a,b)
{
if(a>b)
{
return a;
}
else if(a<b)
{
return b;
}
else
{
return"兩個數(shù)相等"
}
}
document.write("8和7相比誰大"+coms(8,7)+"<br />">;
document.write("5和7相比誰大"+coms(5,7)+"<br />");
document.write("10和10"+coms(10,10));
2019-09-04
舉報(bào)
2019-09-04
倒數(shù)第三行后面? "<br />">;?
? ? ? ? ?敲錯了,是"<br />");