<!DOCTYPE HTML>
<html>
<head>
<script>
document.write("TEST1")
document.getElementById("demo").innerHTML="TEST2"
document.write("TEST3")
</script>
</head>
<body>
<p id="demo">TO_BE_REPLACED</p>
</body>
</html>
这是输出:TEST1
TO_BE_REPLACED
似乎 javascript 执行停止在document.getElementById("demo").innerHTML="TEST2"
. 为什么不执行?