标签:javascript
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>认识语句</title> <script type="text/javascript"> document.write("Hello"); document.write("World"); </script> </head> <body> </body> </html>浏览器里面输出:HelloWorld,并没有换行,要换行document.write("<br>");或者把document.write("Hello")改为document.write("Hello"+“<br>”);分好只是表示一句结束
标签:javascript
原文地址:http://blog.csdn.net/u012110719/article/details/40833909