writeln() 方法与 write() 方法作用相同,外加可在每个表达式后写一个换行符。
</>code
- document.writeln(exp1,exp2,exp3,....)
提示:在编写 <pre> 标记的内容时,该方法很有用。
</>code
- <html>
- <body>
- <script type="text/javascript">
document.writeln("Hello World!")
;- </script>
- </body>
- </html>
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛
Powered by 365建站网 RSS地图 HTML地图
copyright © 2013-2024 版权所有 鄂ICP备17013400号