<!DOCTYPE HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函数</title>
<script type="text/javascript">
function max(x,y){
if(x>=y){
return x;
}
else{
return y;
}
}
document.write(" 6 和 3 的较大值是:"max(6,3));
</script>
</head>
<body>
</body>
</html>
document.write(" 6 和 3 的较大值是:"max(6,3));
max前少了个加号