出不来...伙伴们帮我看看啊哭...
<script type="text/javascript">
//定义函数
function max(num1,num2){
var num1,num2;
if(num1>num2){max=num1;}
else if(num1<num2){max=num2;}
else{max="两数字相等";}
return max;
}
document.write("5和4的较大值是:"+max(5,4)+"<br>");
document.write("6和3的较大值是:"+max(6,3)+"<br>");
</script>