JavaScript数字负无穷大 JavaScript 数字NaN属性 JavaScript 数字正无穷大 JavaScript数字负无穷大 <html> <head> <script type = "text/javascript"> <!-- function showValue() { var smallNumber = (-Number.MAX_VALUE) * 2 if (smallNumber == Number.NEGATIVE_INFINITY) { alert("Value of smallNumber : " + smallNumber ); } } //--> </script> </head> <body> <p>Click the following to see the result:</p> <form> <input type = "button" value = "Click Me" onclick = "showValue();" /> </form> </body> </html> JavaScript 数字NaN属性 JavaScript 数字正无穷大