HTML-第一個簡單的JavaScript代碼


 1 <!DOCTYPE html>
 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功能時候的效果


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM