<html>
<body>

<script type="text/javascript">
document.write("<h1>这是标题</h1>");
document.write("<p>这是段落。</p>");
document.write("<p>这是另一个段落。</p>");
</script>

</body>
</html>

<html>
<body>

<script type=" 2881064178text/javascript">
// 这行代码输出标题:
document.write("<h1>这是标题</h1>");
// 这行代码输出段落:
document.write("<p>这是段落。</p>");
document.write("<p>这是另一个段落。</p>");
</script>

</body>
</html>

<html>
<body>

<script type="text/javascript">
/*
下面的代码将输出
一个标题和两个段落
*/
document.write("<h1>这是标题</h1>");
document.write("<p>这是段落。</p>");
document.write("<p>这是另一个段落。</p>");
</script>

</body>
</html>

<html>
<body>

<script type="text/javascript">
/*
document.write("<h1>这是标题</h1>");
document.write("<p>这是段落。</p>");
document.write("<p>这是另一个段落。</p>");
*/
</script>

</body>
</html>

 

相关文章:

  • 2022-12-23
  • 2021-07-09
  • 2018-02-08
  • 2021-10-19
  • 2022-12-23
  • 2021-09-01
  • 2021-11-08
  • 2021-06-18
猜你喜欢
  • 2022-12-23
  • 2021-08-14
  • 2021-09-26
  • 2021-08-07
  • 2021-09-19
  • 2021-06-18
  • 2022-02-10
相关资源
相似解决方案