JavaScript for 循环标题【每日一段代码56】

<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>

原文地址:https://www.cnblogs.com/naokr/p/2410691.html