POSITIVE_INFINITY 表示无穷大
- <!DOCTYPE html>
- <html>
- <body>
- <h1>JavaScript Number 对象属性</h1>
- <p>POSITIVE_INFINITY</p>
- <p id="demo"></p>
- <script>
- var x = Number.POSITIVE_INFINITY;
- document.getElementById("demo").innerHTML = x;
- </script>
- </body>
- </html>