JavaScript 对大小写敏感
- <!DOCTYPE html>
- <html>
- <body>
- <h2>JavaScript 对大小写敏感</h2>
- <p>请试着把 lastName 改为 lastname。</p>
- <p id="demo"></p>
- <script>
- var lastname, lastName;
- lastName = "Gates";
- lastname = "Jobs";
- document.getElementById("demo").innerHTML = lastName;
- </script>
- </body>
- </html>