最后的显示结果是什么?后面两行为什么没有显示?如何修改将其显示出来?

最后的显示结果是什么?后面两行为什么没有显示?如何修改将其显示出来?
代码:

img

看看你的script执行了没有
放一个alert看看会不会弹框。

<p>注意 write() 方法不会在每个语句后面新增一行:</p>
 
<script>
document.write("Hello World!");
document.write("Have a nice day!");
</script>
 
<p>注意 writeln() 方法在每个语句后面新增一行:</p>
<script>
document.writeln("Hello World!");
document.writeln("Have a nice day!");
</script>