NEGATIVE_INFINITY 表示负无穷大

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