大神求助我的問題在哪里呀
<!DOCTYPE? HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函數(shù)</title>
<script type="text/javascript">
//定義函數(shù)
function add2(x,y){
? ? if(x<y){
? ? ? ? return y;
? ? }
? ? else if(x>y){
? ? ? ? return x;
? ? }
? ? else{
? ? ? ? return "equal";
? ? }
}
rep1 = add2(5,4);
rep2 = add2(6,3);
? document.write(" 5 和 4 的較大值是:"+rep1"<br>");
? document.write(" 6 和 3 的較大值是:"+rep2 );?
</script>
</head>
<body>
</body>
</html>
2019-03-12