<html>
<body>
<script type="text/javascript">
for (i=1; i<5; i++)
{
document.write("<h" +i+ ">这是标题" +i+ "<h" +i+ ">");
document.write("<br>");
}
</script>
</body>
</html>
<html>
<body>
<script type="text/javascript">
for (i=1; i<5; i++)
{
document.write("<h" +i+ ">这是标题" +i+ "<h" +i+ ">");
document.write("<br>");
}
</script>
</body>
</html>