这是怎么回事?
跟着显示做的,为什么不会弹出窗口的值是sum ,不是11?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>函数调用</title>
<script type="text/javascript">
function add2()
{
sum = 6 + 5;
alert("sum");
}
</script>
</head>
<body>
<form>
<input type="button" value="点击我" onclick="add2()" />
</form>
</body>
</html>