1 <!DOCTYPE type> 2 <html> 3 <head> 4 <title>简单的JavaScript程序</title> 5 <meta charset = "utf-8"> 6 <meta name = "viewport" content = "width=device-width",initial-scale=1.0> 7 <meta name = "keyword" content = "html css javascript"> 8 <meta name = "description" content = "这是简单的html css javascript学习"> 9 <meta name = "author" content = "王思怡"> 10 <script> 11 document.write("hello javascript!"); 12 </script> 13 <noscript> 14 <p>您没有开启JavaScript</p> 15 </noscript> 16 <body> 17 <p>hello world!</p> 18 </body> 19 </html>
以下是开启JavaScirpt和关闭JavaScirpt功能时候的效果
原文:https://www.cnblogs.com/sucker/p/10928496.html