<html>
<head>
<title>js生成文字</title>
</head>
<body>
<script type="text/javascript">
document.write("<h1>hello world</h1>");
</script>
</body>
</html>
【文字设置成为标题1】
<html>
<head>
<title>js生成文字</title>
</head>
<body>
<script type="text/javascript">
document.write("<h1>hello world</h1>");
</script>
</body>
</html>
【文字设置成为标题1】