JavaScript 数字最大值


JavaScript 数字最大值

<html>
   <head>

      <script type="text/javascript">
         <!--
            function showValue() {
               var val = Number.MAX_VALUE;

               document.write ("Value of Number.MAX_VALUE : " + val );
            }
         //-->
      </script>

   </head>

   <body>
      <p>Click the following to see the result:</p>

      <form>
         <input type="button" value="Click Me" onclick="showValue();" />
      </form>

   </body>
</html>