setTimeout只执行一次,没有定时执行的问题!
<html>
<head>
<title></title>
</head>
<body>
<form name="form">
<input type="text" name="tt" value="hello">
</form>
<script>
function test(str)
{
alert(str);
}
setTimeout("test(document.form.tt.value)", 10);
</script>
</body>
</html>
但是在浏览器里运行时定时器只执行一次就不执行了,问题在哪里?