外面的那个setTimeout()会循环执行吗
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>计时器</title> </head> <script type="text/javascript"> //var num=0; function f1(){var num=0;startCount();} function startCount() { document.getElementById('count').value=num; num=num+1; setTimeout("startCount()",1000); } setTimeout("f1()",10000); </script> </head> <body> <form> <input type="text" id="count" /> </form> </body> </html>
如果是这样的话,结果会是怎样