writeln在结束的位置加了一个换行,但在页面中显示的只是一个空格,放在<pre></pre>里面才会进行换行

  document.write("<pre>第一行");
  document.writeln("第一行");
  document.writeln("这里是第二行");
  document.writeln("这里是第三行");
  document.writeln("这里是第四行</pre>");

相关文章:

  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-01-08
  • 2021-07-20
  • 2021-07-06
猜你喜欢
  • 2021-10-01
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
相关资源
相似解决方案