问题出在什么地方啊?
<!DOCTYPE HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函数</title>
<script type="text/javascript">
function comp(a,b)
{var a=parseInt(prompt("输入A值"));
var b=parseInt(prompt("输入B值"));
if(a>b){
return a;
}
else if(a<b){
return b;
}
else{
return "两个值相等"
}
}
</script>
</head>
<body>
<input type="button" onClick="comp()" value="录入AB值">
</body>
</html>