setTimeout()问题
<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
var num=0;
function numCount(){
document.getElementById('txt').value=num;
num=num+1;
setTimeout("numCount()",1000);
}
setTimeout("numCount()",1000);
</script>
</head>
<body>
<form>
<input type="text" id="txt" />
</form>
</body>
</html>
为什么括号里面和外面都要放setTimeout("numCount()",1000); 才能运行;在里面放和外面放的区别