想问一下,这里为什么会无限循环?
<script type="text/javascript">
function element(a,b)
{
sum=a+b;
alert(sum);
element(4,5);
}
</script>
</head>
<body>
<form>
<input type="button" value="click" onclick="element(4,5)">
</form>
弹出窗口后无法关闭,一直弹出,求解释
<script type="text/javascript">
function element(a,b)
{
sum=a+b;
alert(sum);
element(4,5);
}
</script>
</head>
<body>
<form>
<input type="button" value="click" onclick="element(4,5)">
</form>
弹出窗口后无法关闭,一直弹出,求解释
2016-01-20
举报