求大神解答這樣有問題么??。?!
<!DOCTYPE ?HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函數(shù)</title>
<script type="text/javascript">
function compare(a,b)
? ? { ?
? ? ? ? if(a>=b){
? ? ? ? {if(a>b)
? ? ? ? ? ?return a;
? ? ? ? else{return "兩數(shù)相等";}}
? ? ? ? else{return b;}
? ? } ? ?
? document.write(" 5 和 4 的較大值是:"+compare(5,4)+"<br/>");
? document.write(" 6 和 3 的較大值是:"+compare(6,3)+"<br/>");?
? document.write(" 88 和88 的較大值是:"+compare(88,88) );?
</script>
</head>
<body>
</body>
</html>
2016-12-14