JavaScript 数组入栈 push


JavaScript 数组入栈 push

<html>
   <head>
      <title>JavaScript Array push Method</title>
   </head>

   <body>

      <script type = "text/javascript">
         var numbers = new Array(1, 4, 9);

         var length = numbers.push(10);
         document.write("new numbers is : " + numbers );

         length = numbers.push(20);
         document.write("<br />new numbers is : " + numbers );
      </script>

   </body>
</html>