NaN 代表“非数字”

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <h1>JavaScript Number 对象属性</h1>
  6.  
  7. <p id="demo"></p>
  8.  
  9. <script>
  10. document.getElementById("demo").innerHTML = Number.NaN;
  11. </script>
  12.  
  13. </body>
  14. </html>