<script language="JavaScript"> var array_1 = new Array('a','b','c'); document.write( array_1.pop() + '<br />' ); document.write( array_1 ); </script>
运行该例子,输出:
c a,b
0