为什么点击按钮没反应啊
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>定义函数</title>
<script type="text/javascript">
function sub2(a,b) //定义函数
{
sub2=a+b;
alert(sub2);
}
sub2(1,2);
</script>
</head>
<body>
<form>
<input type="button" value="点击我" onclick="sub2()" />
</form>
</body>
</html>